PTDocumentViewSettingsController


@interface PTDocumentViewSettingsController
    : UITableViewController <PTOverridable>

The PTDocumentViewSettingsController class displays settings to control a PTPDFViewCtrl.

  • The settings object that is used to persist view preferences.

    Declaration

    Objective-C

    @property (nonatomic, strong, null_resettable) PTDocumentViewSettings *settings;

    Swift

    var settings: PTDocumentViewSettings! { get set }
  • The PTPDFViewCtrl that the control will apply settings changes to.

    Declaration

    Objective-C

    @property (nonatomic, weak, readonly) PTPDFViewCtrl *_Nullable pdfViewCtrl;

    Swift

    weak var pdfViewCtrl: PTPDFViewCtrl? { get }
  • true if single page mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeSinglePageHidden;

    Swift

    var viewModeSinglePageHidden: Bool { get set }
  • true if facing page mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeFacingHidden;

    Swift

    var viewModeFacingHidden: Bool { get set }
  • true if cover facing page mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeCoverFacingHidden;

    Swift

    var viewModeCoverFacingHidden: Bool { get set }
  • true if right to left page mode is hidden; false otherwise. Default is true unless UIApplication.sharedApplication.userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft is true, in which case the default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeRightToLeftHidden;

    Swift

    var viewModeRightToLeftHidden: Bool { get set }
  • true if reader mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeReaderHidden;

    Swift

    var viewModeReaderHidden: Bool { get set }
  • true if continuous page mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL viewModeContinuousHidden;

    Swift

    var viewModeContinuousHidden: Bool { get set }
  • true if light color mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL colorModeLightHidden;

    Swift

    var colorModeLightHidden: Bool { get set }
  • true if dark color mode mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL colorModeDarkHidden;

    Swift

    var colorModeDarkHidden: Bool { get set }
  • true if sepia color mode is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL colorModeSepiaHidden;

    Swift

    var colorModeSepiaHidden: Bool { get set }
  • true if page rotation is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL pageRotationHidden;

    Swift

    var pageRotationHidden: Bool { get set }
  • true if crop pages is hidden; false otherwise. Default is false.

    Declaration

    Objective-C

    @property (nonatomic) BOOL cropPagesHidden;

    Swift

    var cropPagesHidden: Bool { get set }
  • The document view settings controller’s delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<PTDocumentViewSettingsControllerDelegate> delegate;

    Swift

    weak var delegate: (any PTDocumentViewSettingsControllerDelegate)? { get set }
  • Initializes a new instance of this view controller.

    @returns An initialized PTDocumentViewSettingsController instance

    Declaration

    Objective-C

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

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)

    Parameters

    pdfViewCtrl

    The PTPDFViewCtrl that the control will interface with.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) UIBarButtonItem *doneButtonItem

    Swift

    var doneButtonItem: UIBarButtonItem { get }
  • Undocumented

    Declaration

    Objective-C

    PT_INIT_UNAVAILABLE
  • Undocumented

    Declaration

    Objective-C

    PT_INIT_UNAVAILABLE
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(nullable NSString *)nibName bundle:(nullable NSBundle *)nibBundle NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;