PTDocumentController

A view controller that displays a PTPDFViewCtrl along with other controls.

  • Whether tool groups are enabled in this view controller. This property controls whether the toolGroupToolbar is shown.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (getter=areToolGroupsEnabled, assign, readwrite, nonatomic)
        BOOL toolGroupsEnabled;

    Swift

    var areToolGroupsEnabled: Bool { get set }
  • The tool group manager instance used to control the current tool group and the set of bar button items displayed in the tool group toolbar.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTToolGroupManager *_Nonnull toolGroupManager;

    Swift

    var toolGroupManager: PTToolGroupManager { get }
  • The tool group toolbar used by this class when the areToolGroupsEnabled property is enabled.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTToolGroupToolbar *_Nonnull toolGroupToolbar;

    Swift

    var toolGroupToolbar: PTToolGroupToolbar { get }
  • Whether the tool group toolbar is hidden. The default value is YES.

    Declaration

    Objective-C

    @property (getter=isToolGroupToolbarHidden, assign, readwrite, nonatomic)
        BOOL toolGroupToolbarHidden;

    Swift

    var isToolGroupToolbarHidden: Bool { get set }
  • Sets whether the tool group toolbar is hidden.

    Declaration

    Objective-C

    - (void)setToolGroupToolbarHidden:(BOOL)hidden animated:(BOOL)animated;

    Swift

    func setToolGroupToolbarHidden(_ hidden: Bool, animated: Bool)

    Parameters

    hidden

    Specify YES to hide the tool group toolbar or NO to show it.

    animated

    Specify YES if you want to animate the change in visibility or NO if you want the control to appear immediately.

  • The tool group indicator view is used to indicate the current tool group.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTToolGroupIndicatorView *_Nonnull toolGroupIndicatorView;

    Swift

    var toolGroupIndicatorView: PTToolGroupIndicatorView { get }
  • The tool group view controller displays the list of available tool groups and allows the user to change the current mode.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTToolGroupViewController *_Nonnull toolGroupViewController;

    Swift

    var toolGroupViewController: PTToolGroupViewController { get }
  • Declaration

    Objective-C

    - (void)showToolGroups:(nonnull id)sender;

    Swift

    func showToolGroups(_ sender: Any)
  • When this view controller is contained in a PTTabbedDocumentViewController instance, shows all the tabbed document view controller’s document tabs.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIBarButtonItem *_Nonnull tabsButtonItem;

    Swift

    var tabsButtonItem: UIBarButtonItem { get }
  • Whether the tabsButtonItem should be automatically shown when this view controller is contained in a PTTabbedDocumentViewController.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL automaticallyShowsTabsButton;

    Swift

    var automaticallyShowsTabsButton: Bool { get set }