Main views

  • Back and forward buttons, used for the action stack navigation.

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

    See more

    Declaration

    Objective-C

    
    @interface PSPDFBackForwardButton : PSPDFButton

    Swift

    class PSPDFBackForwardButton : PSPDFButton
  • If the cover option is set, this is showed until the play button is pressed.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFMediaPlayerCoverView : UIView

    Swift

    class PSPDFMediaPlayerCoverView : UIView
  • Displays the current page position at the bottom of the screen. - note: This class connects to the pdfController via KVO.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFPageLabelView : PSPDFLabelView

    Swift

    class PSPDFPageLabelView : PSPDFLabelView
  • The HUD will relay touches of subviews, but won’t react on touches on this actual view. This is achieved with overriding pointInside:withEvent:.

    Declaration

    Objective-C

    
    @interface PSPDFRelayTouchesView : UIView

    Swift

    class PSPDFRelayTouchesView : UIView
  • Scroll view that manages one or multiple PSPDFPageViews.

    Depending on the pageTransition, either every PSPDFPageView is embedded in a PSPDFScrollView, or there is one global PSPDFScrollView for all PSPDFPageViews. This is also the center for all the gesture recognizers. Subclass to customize behavior (e.g. override gestureRecognizerShouldBegin:)

    Warning

    If you manually zoom/change the contentOffset, you must use the methods with animation extension. (You don’t have to animate, but those are overridden by PSPDFKit to properly inform the PSPDFPageViews to re-render. You can also use the default UIScrollView properties and manually call updateRenderView on each visible PSPDFPageView)

    - (void)setZoomScale:(float)scale animated:(BOOL)animated; - (void)zoomToRect:(CGRect)rect animated:(BOOL)animated; - (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated;

    See more

    Declaration

    Objective-C

    
    @interface PSPDFScrollView
        : PSPDFAvoidingScrollView <UIScrollViewDelegate,
                                   UIGestureRecognizerDelegate>

    Swift

    class PSPDFScrollView : PSPDFAvoidingScrollView, UIScrollViewDelegate, UIGestureRecognizerDelegate
  • Handles text and image selection. - note: Requires the PSPDFFeatureMaskTextSelection feature flag. Don’t manually create this class. The initializer here is not exposed. The selection color is determined by the tintColor property inherited from UIView.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFTextSelectionView : UIView <AVSpeechSynthesizerDelegate>

    Swift

    class PSPDFTextSelectionView : UIView, AVSpeechSynthesizerDelegate