PSPDFStyleButton

Objective-C


@interface PSPDFStyleButton : PSPDFButton

Swift

class StyleButton : PDFButton

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.1 alpha:0.8];
[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 (nonatomic) PSPDFButtonStyle buttonStyle;

    Swift

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

    Note

    Only honored if buttonStyle is set to PSPDFButtonStyleModern.

    Declaration

    Objective-C

    @property (nonatomic) UIBlurEffectStyle blurEffectStyle;

    Swift

    var blurEffectStyle: UIBlurEffect.Style { get set }