Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kiss your wallet goodbye
Search
Mikimoto Chuang
October 30, 2012
Programming
4
340
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
230
開放資料與市場經濟
mikimoto
1
88
2013,還在搞輸入法?
mikimoto
0
150
MOPCON 2012 回顧與展望
mikimoto
0
410
那些年,我們一起用過的 Xcode
mikimoto
4
420
CocoaHeads Kaohsiung Meetup Introduction
mikimoto
1
180
DIY Open Source 無人自走砲 - OSDC.tw 2012
mikimoto
1
590
Other Decks in Programming
See All in Programming
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
440
AI時代のUIはどこへ行く?
yusukebe
18
8.8k
Cache Me If You Can
ryunen344
2
690
Kiroで始めるAI-DLC
kaonash
2
580
Android端末で実現するオンデバイスLLM 2025
masayukisuda
1
150
JSONataを使ってみよう Step Functionsが楽しくなる実践テクニック #devio2025
dafujii
1
530
AIと私たちの学習の変化を考える - Claude Codeの学習モードを例に
azukiazusa1
10
3.9k
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
130
AIでLINEスタンプを作ってみた
eycjur
1
230
Improving my own Ruby thereafter
sisshiki1969
1
160
Design Foundational Data Engineering Observability
sucitw
3
190
Tool Catalog Agent for Bedrock AgentCore Gateway
licux
6
2.4k
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
4 Signs Your Business is Dying
shpigford
184
22k
Gamification - CAS2011
davidbonilla
81
5.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
How STYLIGHT went responsive
nonsquared
100
5.8k
GraphQLとの向き合い方2022年版
quramy
49
14k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Writing Fast Ruby
sferik
628
62k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
GitHub's CSS Performance
jonrohan
1032
460k
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⽇日星期⼆二