PSPDFLabelView


@interface PSPDFLabelView : UIView

Base class to show a semi-transparent, rounded label.

You can use UIAppearance to customize the main properties. [PSPDFLabelView appearance].labelStyle = PSPDFLabelStyleFlat; [PSPDFLabelView appearance].backgroundColor = [UIColor colorWithWhite:0.1f alpha:0.8f]; [PSPDFLabelView appearance].textColor = 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 PSPDFBackForwardButton.

  • UILabel used internally to show the text.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UILabel *_Nonnull label;

    Swift

    var label: UnsafeMutablePointer
  • Margin that is between the text and this view. Defaults to 2 on iPhone and 3 on iPad.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat labelMargin;

    Swift

    var labelMargin: CGFloat { get set }
  • Customize label style. Defaults to PSPDFLabelStyleModern. The styles match the buttonStyle values on PSPDFBackForwardButton.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PSPDFLabelStyle labelStyle;

    Swift

    var labelStyle: PSPDFLabelStyle { get set }
  • Customize the blur effect style used. Only applicable in PSPDFLabelStyleModern. Defaults to UIBlurEffectStyleExtraLight.

    Declaration

    Objective-C

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

    Swift

    var blurEffectStyle: Int32 { get set }
  • Equal to label.textColor, but can also be used with UIAppearance. Defaults to black.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIColor *_Nonnull textColor;

    Swift

    var textColor: NSColor { get set }