Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Kiss your wallet goodbye
Mikimoto Chuang
October 30, 2012
Programming
4
280
Kiss your wallet goodbye
談 iOS6 PassBook 實作細節
Mikimoto Chuang
October 30, 2012
Tweet
Share
More Decks by Mikimoto Chuang
See All by Mikimoto Chuang
App 如何跨越虛擬與真實世界的鴻溝
mikimoto
1
210
開放資料與市場經濟
mikimoto
1
77
2013,還在搞輸入法?
mikimoto
0
120
MOPCON 2012 回顧與展望
mikimoto
0
360
那些年,我們一起用過的 Xcode
mikimoto
4
410
CocoaHeads Kaohsiung Meetup Introduction
mikimoto
1
160
DIY Open Source 無人自走砲 - OSDC.tw 2012
mikimoto
1
550
Other Decks in Programming
See All in Programming
Swift Concurrency in GoodNotes
inamiy
4
1.4k
OSSから学んだPR Descriptionの書き方
fugakkbn
4
140
Remix + Cloudflare Pages + D1 で ポケモン SV のレンタルチームを検索できるアプリを作ってみた
kuroppe1819
4
1.4k
なぜRubyコミュニティにコミットするのか?
luccafort
0
340
そうだ、10Gを引こう
mattenn
0
110
社会人 20 年目エンジニア、発信で技術学びなおしてる話
e99h2121
1
150
AWSにおける標的型Bot対策
hacomono
0
450
監視せなあかんし、五大紙だけにオオカミってな🐺🐺🐺🐺🐺
sadnessojisan
3
1.6k
OIDC仕様に準拠した Makuake ID連携基盤構築の裏側
ymtdzzz
0
610
量子コンピュータ時代のプログラミングセミナー / 20230119_Amplify_seminar _shift_optimization
fixstars
0
200
domain層のモジュール化 / MoT TechTalk #15
mot_techtalk
0
150
LIFFで動く割り勘アプリTATEKAをリリースしてみた話
inoue2002
0
270
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
263
38k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
270
12k
Designing for humans not robots
tammielis
245
24k
Testing 201, or: Great Expectations
jmmastey
25
5.7k
Designing the Hi-DPI Web
ddemaree
273
32k
Making the Leap to Tech Lead
cromwellryan
117
7.7k
Navigating Team Friction
lara
177
12k
The Power of CSS Pseudo Elements
geoffreycrofte
52
4.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
22
1.7k
5 minutes of I Can Smell Your CMS
philhawksworth
198
18k
Product Roadmaps are Hard
iamctodd
38
7.7k
Transcript
Kiss your wallet goodbye Mikimoto 12年10月30⽇日星期⼆二
How many tickets and cards in your wallet? 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
⼿手機與卡⽚片的結合? 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
Think Different 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
All Resource on developer.apple.com 12年10月30⽇日星期⼆二
background.png footer.png icon.png logo.png pass.json strip.png thumbnail.png 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
NSImage 負責載⼊入圖⽚片 12年10月30⽇日星期⼆二
@2x.png 來對應解析度問題 12年10月30⽇日星期⼆二
NSBundle 載⼊入 Resource 12年10月30⽇日星期⼆二
en.proj... 來對應多國語系問題 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
pass.json 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
Layout of a boarding pass 12年10月30⽇日星期⼆二
Layout of a coupon 12年10月30⽇日星期⼆二
Layout of an event ticket 12年10月30⽇日星期⼆二
Layout of a store card 12年10月30⽇日星期⼆二
Layout of a generic pass 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
Updating a Pass 12年10月30⽇日星期⼆二
12年10月30⽇日星期⼆二
Pass Kit Framework 12年10月30⽇日星期⼆二
PKPassLibrary 存取 iOS Pass Library 12年10月30⽇日星期⼆二
[PKPassLibrary isPassLibraryAvailable] NSArray myPasses = [PKPassLibrary passes]; PKPass myPass =
[PKPassLibrary passWithPassTypeIdentifier:[identifierserial] Number:[serialNumber]]; [PKPassLibrary replacePassWithPass:[new pass]] [PKPassLibrary removePass:[pass]] 12年10月30⽇日星期⼆二
PKPass Pass 的抽象化物件 12年10月30⽇日星期⼆二
PKAddPassesViewController 提供新增 Pass 的預設 View Controller 12年10月30⽇日星期⼆二
[[UIApplication sharedApplication] openURL: [pass passURL]] to open your Pass. 12年10月30⽇日星期⼆二
addObserverForName:object:queue:usingBlock: to handle your pass change notification. UserInfo of the
notification describes what changes. 12年10月30⽇日星期⼆二
Demo 12年10月30⽇日星期⼆二
• CocoaHeads Kaohsiung BookPass Project • Demo • http://kaohsiung.cocoaheads.tw/ PassBook/
• Open source • https://github.com/CocoaHeads- Kaohsiung/BookPass 12年10月30⽇日星期⼆二
歡迎⼤大家⼀一起來玩 12年10月30⽇日星期⼆二