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 standardbackgroundColor
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 thelabelStyle
values onPSPDFLabelView
.Declaration
Objective-C
@property (nonatomic) PSPDFButtonStyle buttonStyle;
Swift
var buttonStyle: StyleButton.Style { get set }
-
Customize the blur effect style used. Defaults to
UIBlurEffectStyleExtraLight
.Declaration
Objective-C
@property (nonatomic) UIBlurEffectStyle blurEffectStyle;
Swift
var blurEffectStyle: UIBlurEffect.Style { get set }