PSPDFStyleButton


@interface PSPDFStyleButton : PSPDFButton

Button that can use a modern (blurred) or flat style.

You can use UIAppearance to customize the main properties.

[PSPDFStyleButton appearance].buttonStyle = PSPDFButtonStyleFlat;
[PSPDFStyleButton appearance].backgroundColor = [UIColor colorWithWhite:0.1f alpha:0.8f];
[PSPDFStyleButton 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.

  • Customize the button style. Defaults to PSPDFButtonStyleModern. The styles match the labelStyle values on PSPDFLabelView.

    Declaration

    Objective-C

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

    Swift

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

    Note

    Only honored if buttonStyle is set to PSPDFButtonStyleModern.

    Declaration

    Objective-C

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

    Swift

    var blurEffectStyle: UIBlurEffect.Style { get set }