PTOutlineViewController
@interface PTOutlineViewController : UITableViewController <PTOverridable>
The PTOutlineViewController will display a document’s outline (PDF bookmarks) that can be used to
navigate the document in a PTPDFViewCtrl. When a bookmark is selected, the controller will navigate the
PTPDFViewCtrl to that page.
-
Returns a new instance of a PTOutlineViewController.
Declaration
Objective-C
- (nonnull instancetype)initWithToolManager: (nonnull PTToolManager *)toolManager;Swift
convenience init(toolManager: PTToolManager)Parameters
toolManagerThe
PTToolManagerobject that provides thePTPDFViewCtrlandPTPDFDocfrom to create the outline, which will change pages when the user selects an annotation item. -
Returns a new instance of an PTOutlineViewController.
Declaration
Objective-C
- (nonnull instancetype)initWithPDFViewCtrl: (nonnull PTPDFViewCtrl *)pdfViewCtrl;Swift
init(pdfViewCtrl: PTPDFViewCtrl)Parameters
pdfViewCtrlThe
PTPDFViewCtrlobject that provides thePTPDFDocfrom which to create the outline, and which will change pages when the user selects an annotation item. -
Whether outlines are considered readonly and cannot be modified or deleted. The default value is
NO, meaning that outlines can be modified and deleted.Note
ThePTToolManager.readonlyproperty is also consulted when determing if outlines can be modified or deleted. WhenPTToolManager.readonlyis set toYESthat property takes precedence over this property’s value.Declaration
Objective-C
@property (nonatomic, getter=isReadonly) BOOL readonly;Swift
var isReadonly: Bool { get set } -
An object that conforms to the
PTOutlineViewControllerDelegateprotocol.Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTOutlineViewControllerDelegate> delegate;Swift
weak var delegate: (any PTOutlineViewControllerDelegate)? { get set } -
Refresh the contents of the PTOutlineViewController
Declaration
Objective-C
- (void)refresh;Swift
func refresh() -
Undocumented
Declaration
Objective-C
- (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE; -
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;
PTOutlineViewController Class Reference