Class

PKAddPassesViewController

Lets your app show a pass and prompt the user to add that pass to the pass library.

Declaration

@interface PKAddPassesViewController : UIViewController

Overview

To add multiple passes without presenting this view controller multiple times, use the addPasses:withCompletionHandler: method of PKPassLibrary.

Topics

Determining if Passes Can Be Added

+ canAddPasses

Returns whether the device supports adding passes.

Adding Passes

delegate

The view controller’s delegate.

PKAddPassesViewControllerDelegate

Methods that an add-passes view controller’s delegate implements.

Creating an Add-Passes View Controller

- initWithPass:

Initializes and returns a newly created add-passes view controller with a single pass.

- initWithPasses:

Initializes and returns a newly created add-passes view controller with an array of passes.

Relationships

Inherits From

See Also

Wallet Availability

PKAddPaymentPassViewController

Displays an interface that lets users add cards to Apple Pay from within your app.