PSPDFBookmarkIndicatorButton


@interface PSPDFBookmarkIndicatorButton : UIButton

Custom UIButton that sets the appropriate bookmark image based on imageType, and applies a shadow as well. The image will always have a tint applied to it, based on the normalTintColor and selectedTintColor properties These colors can be customised using regular UIAppearance APIs. To customise the appearance even further, your can use the custom image loading API to change the images. - see: PSPDFBookmarkIndicatorImageType

  • Specifies the image type the button should use. Defaults to PSPDFBookmarkIndicatorImageTypeMedium.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFBookmarkIndicatorImageType imageType;

    Swift

    var imageType: PSPDFBookmarkIndicatorImageType { get set }
  • Specifies the image’s tint color when not selected (bookmarked). Defaults to +[UIColor grayColor]. - see: selectedTintColor

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        UIColor *normalTintColor;

    Swift

    var normalTintColor: NSColor! { get set }
  • Specifies the image’s tint color when selected (bookmarked). Defaults to +[UIColor redColor]. - see: normalTintColor

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        UIColor *selectedTintColor;

    Swift

    var selectedTintColor: NSColor! { get set }