PTNavigationListsViewController
@interface PTNavigationListsViewController : UIViewController <PTOverridable>
A container view controller similar to a UITabBarController
that displays a segmented control where
the selection determines which child view controller to display.
By default, the navigation lists controller contains an PTOutlineViewController
, PTAnnotationViewController
,
PTBookmarkViewController
, and if the document contains OCG layers, a PTPDFLayerViewController
.
-
Returns an initialized
PTNavigationListsViewController
with the default lists.Declaration
Objective-C
- (nonnull instancetype)initWithToolManager: (nonnull PTToolManager *)toolManager;
Swift
init(toolManager: PTToolManager)
Parameters
toolManager
the tool manager used to initialize the default child view controllers
Return Value
an initialized
PTNavigationListsViewController
with the default lists -
The child view controllers to manage and display.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<UIViewController *> *listViewControllers;
Swift
var listViewControllers: [UIViewController]? { get set }
-
Adds a child view controller to the list of managed view controllers.
Declaration
Objective-C
- (void)addListViewController:(nonnull UIViewController *)listViewController;
Swift
func addListViewController(_ listViewController: UIViewController)
Parameters
listViewController
the child view controller to be added
-
Removes a child view controller from the list of managed view controllers.
Declaration
Objective-C
- (void)removeListViewController:(nonnull UIViewController *)listViewController;
Swift
func removeListViewController(_ listViewController: UIViewController)
Parameters
listViewController
the child view controller to be removed
-
The currently selected view controller in
listViewControllers
.Declaration
Objective-C
@property (nonatomic, strong, nullable) UIViewController *selectedViewController;
Swift
var selectedViewController: UIViewController? { get set }
-
The index of the currently selected list view controller. The default value is
0
.Declaration
Objective-C
@property (nonatomic) NSUInteger selectedIndex;
Swift
var selectedIndex: UInt { get set }
-
The
PTOutlineViewController
that is added when the control is first instantiated.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTOutlineViewController *_Nonnull outlineViewController;
Swift
var outlineViewController: PTOutlineViewController { get }
-
The
PTAnnotationViewController
that is added when the control is first instantiated.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTAnnotationViewController *_Nonnull annotationViewController;
Swift
var annotationViewController: PTAnnotationViewController { get }
-
The
PTBookmarkViewController
that is added when the control is first instantiated.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTBookmarkViewController *_Nonnull bookmarkViewController;
Swift
var bookmarkViewController: PTBookmarkViewController { get }
-
The
PTDigitalSignaturesViewController
that is added when the control is first instantiated.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTDigitalSignaturesViewController *_Nonnull digitalSignaturesViewController;
Swift
var digitalSignaturesViewController: PTDigitalSignaturesViewController { get }
-
The
PTPDFLayerViewController
that is added when the control is first instantiated.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTPDFLayerViewController *_Nonnull pdfLayerViewController;
Swift
var pdfLayerViewController: PTPDFLayerViewController { get }
-
The visibility of the
PTPDFLayerViewController
.Declaration
Objective-C
@property (nonatomic) PTNavigationListsViewControllerVisibility pdfLayerViewControllerVisibility;
Swift
var pdfLayerViewControllerVisibility: PTNavigationListsViewControllerVisibility { get set }
-
The visibility of the
PTDigitalSignaturesViewController
.Declaration
Objective-C
@property (nonatomic) PTNavigationListsViewControllerVisibility digitalSignaturesViewControllerVisibility;
Swift
var digitalSignaturesViewControllerVisibility: PTNavigationListsViewControllerVisibility { get set }
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithNibName:(nullable NSString *)nibName bundle:(nullable NSBundle *)nibBundle NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;