iOS Developer Library — Pre-Release

Developer

PassKit Framework Reference PKAddPassesViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

PKAddPassesViewControllerDelegate

Inheritance


Not Applicable

Conforms To


Import Statement


Swift

import PassKit

Objective-C

@import PassKit;

Availability


Available in iOS 6.0 and later.

The PKAddPassesViewControllerDelegate protocol defines methods that an add-passes view controller’s delegate implements.

  • Sent to the delegate after the add-passes view controller has finished.

    Declaration

    Swift

    optional func addPassesViewControllerDidFinish(_ controller: PKAddPassesViewController!)

    Objective-C

    - (void)addPassesViewControllerDidFinish:(PKAddPassesViewController *)controller

    Discussion

    The delegate is responsible for dismissing the view controller in this method.

    Import Statement

    Objective-C

    @import PassKit;

    Swift

    import PassKit

    Availability

    Available in iOS 6.0 and later.