Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kiss your wallet goodbye

Kiss your wallet goodbye

談 iOS6 PassBook 實作細節

Mikimoto Chuang

October 30, 2012
Tweet

More Decks by Mikimoto Chuang

Other Decks in Programming

Transcript

  1. [PKPassLibrary isPassLibraryAvailable] NSArray myPasses = [PKPassLibrary passes]; PKPass myPass =

    [PKPassLibrary passWithPassTypeIdentifier:[identifierserial] Number:[serialNumber]]; [PKPassLibrary replacePassWithPass:[new pass]] [PKPassLibrary removePass:[pass]] 12年10月30⽇日星期⼆二
  2. addObserverForName:object:queue:usingBlock: to handle your pass change notification. UserInfo of the

    notification describes what changes. 12年10月30⽇日星期⼆二
  3. • CocoaHeads Kaohsiung BookPass Project • Demo • http://kaohsiung.cocoaheads.tw/ PassBook/

    • Open source • https://github.com/CocoaHeads- Kaohsiung/BookPass 12年10月30⽇日星期⼆二