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 }
  • Allows showing a persistent close button. Defaults to PSPDFPersistentCloseButtonModeNone.

    Declaration

    Objective-C

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

    Swift

    var persistentCloseButtonMode: PSPDFPersistentCloseButtonMode { get set }
  • 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.

    Declaration

    Objective-C

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

    Swift

    var persistentCloseButton: UnsafeMutablePointer