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, null_resettable) UIView *backgroundView;

    Swift

    var backgroundView: UIView! { get set }
  • The text label showing the page number.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *_Nonnull label;

    Swift

    var label: UILabel { get }
  • Presents a UIAlertController to allow the user to jump to a page.

    Declaration

    Objective-C

    - (void)presentGoToPageController;

    Swift

    func presentGoToPageController()
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;