PTPageIndicatorViewController


@interface PTPageIndicatorViewController : UIViewController <PTOverridable>

The PTPageIndicatorViewController displays the current page number in a document.

  • Initializes a new PTPageIndicatorViewController instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)

    Parameters

    pdfViewCtrl

    the PTPDFViewCtrl instance that the control will coordinate with

  • Initializes a new PTPageIndicatorViewController instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithToolManager:
        (nonnull PTToolManager *)toolManager;

    Swift

    convenience init(toolManager: PTToolManager)

    Parameters

    toolManager

    the PTToolManager instance that the control will coordinate with

  • The PTPDFViewCtrl instance that this control coordinates with to receive page-change events and page-related information.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) PTPDFViewCtrl *pdfViewCtrl;

    Swift

    var pdfViewCtrl: PTPDFViewCtrl? { get }
  • The PTToolManager instance that this control coordinates with to receive page-related events.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) PTToolManager *toolManager;

    Swift

    var toolManager: PTToolManager? { get }
  • The view that provides the background appearance. The default background view blurs the content behind the page indicator. Setting a value of nil resets this property to the default background view.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite, null_resettable) UIView *backgroundView;

    Swift

    var backgroundView: UIView! { get set }
  • Presents a UIAlertController to allow the user to jump to a page.

    Declaration

    Objective-C

    - (void)presentGoToPageController;

    Swift

    func presentGoToPageController()