25. Passbook and PassKit

With iOS 6, Apple introduced a new standard app called Passbook, which is a place to keep and have easy access to a user’s event tickets, traveling tickets, coupons, and store cards (like gift cards, prepaid cards, or rewards cards). Passbook is currently available only on iPhone and iPod touch devices, not on iPad devices.

Passbook has special access to the lock screen. If a user is within a geofence, defined by a location or set of locations listed in the pass, on a relevant date specified in a pass, the pass will be displayed on the lock screen so that the user can slide and open it directly in the Passbook app.

The Passbook app displays passes like a stack so that the user can see the top part of each pass. The top ...

Get Mastering iOS Frameworks: Beyond the Basics, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.