PSPDFUserInterfaceView

The user interface view overlay for the PSPDFViewController. Contains the thumbnail and page/title label overlays.

  • Convenience initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame
                               dataSource:
                                   (nonnull id<PSPDFPresentationContext>)dataSource;

    Swift

    init(frame: CGRect, dataSource: PSPDFPresentationContext)
  • The data source.

    Declaration

    Objective-C

    @property (readwrite, nonatomic)
        id<PSPDFPresentationContext> _Nullable dataSource;

    Swift

    weak var dataSource: PSPDFPresentationContext? { get set }
  • Force subview updating.

    Declaration

    Objective-C

    - (void)layoutSubviewsAnimated:(BOOL)animated;

    Swift

    func layoutSubviews(animated: Bool)
  • Fetches data again

    Declaration

    Objective-C

    - (void)reloadData;

    Swift

    func reloadData()
  • Specifies the distance between the subviews shown at the bottom and the top of the scrubber bar or the bottom of the screen, depending on whether the scrubber bar is enabled. Defaults to 0,5,10,5.

    Note

    The subviews shown at the bottom include the page label along with the backward, forward and apply redaction buttons.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets pageLabelInsets;

    Swift

    var pageLabelInsets: UIEdgeInsets { get set }
  • Specifies the distance between the top document label. Defaults to 10,5,0,5.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets documentLabelInsets;

    Swift

    var documentLabelInsets: UIEdgeInsets { get set }
  • Deprecated

    Deprecated in PSPDFKit 8.4 for iOS. Use -[PSPDFUserInterfaceView scrubberBarInsets:] instead to add insets to the thumbnail bar.

    Setting this property does not apply insets to the thumbnail bars. It did not do anything in the previous PSPDFKit releases either.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets thumbnailBarInsets;

    Swift

    var thumbnailBarInsets: UIEdgeInsets { get set }
  • Insets from self.frame when positioning the scrubber bar. Defaults to 0,0,0,0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets scrubberBarInsets;

    Swift

    var scrubberBarInsets: UIEdgeInsets { get set }
  • Update these to manually set the frame.

    dataSource will not be nil when these methods are called.

    Declaration

    Objective-C

    - (void)updateDocumentLabelFrameAnimated:(BOOL)animated;

    Swift

    func updateDocumentLabelFrame(animated: Bool)
  • Undocumented

    Declaration

    Objective-C

    - (void)updateThumbnailBarFrameAnimated:(BOOL)animated;

    Swift

    func updateThumbnailBarFrame(animated: Bool)
  • Undocumented

    Declaration

    Objective-C

    - (void)updateScrubberBarFrameAnimated:(BOOL)animated;

    Swift

    func updateScrubberBarFrame(animated: Bool)
  • Use this method to customize the position of the page label.

    Note

    The default implementation also sizes the label appropriately. Please call super and then change only the position of the label.

    Declaration

    Objective-C

    - (void)updatePageLabelFrameAnimated:(BOOL)animated;

    Swift

    func updatePageLabelFrame(animated: Bool)