PSPDFNavigationController


@interface PSPDFNavigationController
    : UINavigationController <UINavigationControllerDelegate>

Simple subclass that forwards following iOS 6+ rotation methods to the top view controller: shouldAutorotate, supportedInterfaceOrientations, preferredInterfaceOrientationForPresentation:.

  • Forward the modern rotation method to the visible view controller. Defaults to YES.

    Declaration

    Objective-C

    @property (getter=isRotationForwardingEnabled, assign, readwrite, nonatomic)
        BOOL rotationForwardingEnabled;

    Swift

    var isRotationForwardingEnabled: Bool { get set }
  • Deprecated

    Deprecated in PSPDFKit 8.3 for iOS. Persistent close buttons are no longer used by PSPDFKit itself and will be removed in a future release.

    Allows showing a persistent close button. Defaults to PSPDFPersistentCloseButtonModeNone. If the persistent close button is used, the delegate of the navigation controller must not be changed.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFPersistentCloseButtonMode persistentCloseButtonMode;

    Swift

    var persistentCloseButtonMode: PSPDFPersistentCloseButtonMode { get set }
  • Deprecated

    Deprecated in PSPDFKit 8.3 for iOS. Persistent close buttons are no longer used by PSPDFKit itself and will be removed in a future release.

    The close button if persistentCloseButtonMode is set. If none is set, a default system close button will be created. Set the button before a VC is pushed to ensure it will be used instead of the auto-generated one. If the persistent close button is used, the delegate of the navigation controller must not be changed.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        UIBarButtonItem *persistentCloseButton;

    Swift

    var persistentCloseButton: UIBarButtonItem? { get set }