PKAddPassesViewController Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/PassKit.framework
Availability
Available in iOS 6.0 and later.
Companion guide
Declared in
PKAddPassesViewController.h

Overview

The PKAddPassesViewController class lets your app show a pass and prompt the user to add that pass to the pass library.

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

Tasks

Working with Add-Passes View Controllers

Properties

delegate

The view controller’s delegate.

@property(nonatomic, assign) id<PKAddPassesViewControllerDelegate> delegate
Discussion

For information about the protocol that the delegate must implement, see PKAddPassesViewControllerDelegate Protocol Reference.

Availability
  • Available in iOS 6.0 and later.
Declared In
PKAddPassesViewController.h

Instance Methods

initWithPass:

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

- (id)initWithPass:(id)pass
Parameters
pass

The pass that is displayed.

Return Value

The initialized add-passes view controller object or nil if there was a problem initializing the object.

Availability
  • Available in iOS 6.0 and later.
Declared In
PKAddPassesViewController.h

initWithPasses:

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

- (id)initWithPasses:(NSArray *)passes
Parameters
passes

The passes that are displayed.

Return Value

The initialized add-passes view controller object or nil if there was a problem initializing the object.

Availability
  • Available in iOS 7.0 and later.
Declared In
PKAddPassesViewController.h