PSPDFBackForwardButton


@interface PSPDFBackForwardButton : PSPDFButton

Back and forward buttons, used for the action stack navigation.

You can use UIAppearance to customize the main properties. [PSPDFBackForwardButton appearance].buttonStyle = PSPDFBackButtonStyleFlat; [PSPDFBackForwardButton appearance].backgroundColor = [UIColor colorWithWhite:0.1f alpha:0.8f]; [PSPDFBackForwardButton appearance].tintColor = UIColor.whiteColor;

Note

The background color can be customized by setting the standard backgroundColor UIView property. If you want to customize the background color, it is recommended that you use PSPDFLabelStyleFlat, as using the blur effect with a non-translucent background color might produce unexpected results.

If you are customizing this view, you might also want to apply similar changes to PSPDFLabelView.

  • Returns a button pre-configured for the back button style.

    Declaration

    Objective-C

    + (nonnull instancetype)backButton;

    Swift

    class func back() -> Self
  • Returns a button pre-configured for the forward button style.

    Declaration

    Objective-C

    + (nonnull instancetype)forwardButton;
  • Customize the button style. Defaults to PSPDFBackButtonStyleModern. The styles match the labelStyle values on PSPDFLabelView.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PSPDFBackButtonStyle buttonStyle;

    Swift

    var buttonStyle: PSPDFBackButtonStyle { get set }
  • Customize the blur effect style used. Defaults to UIBlurEffectStyleDark.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIBlurEffectStyle blurEffectStyle;

    Swift

    var blurEffectStyle: Int32 { get set }
  • Convenience long press gesture recognizer. Use addTarget:action: to perform custom actions when triggered.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        UILongPressGestureRecognizer *_Nonnull longPressRecognizer;

    Swift

    var longPressRecognizer: NSPressGestureRecognizer { get }