PTNavigationListsViewController

@interface PTNavigationListsViewController : UIViewController

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, and a PTBookmarkViewController.

  • 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 (readwrite, copy, nonatomic, nullable)
        NSArray<UIViewController *> *listViewControllers;

    Swift

    var listViewControllers: [UIViewController]? { get set }
  • The currently selected view controller in listViewControllers.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        UIViewController *selectedViewController;

    Swift

    unowned(unsafe) var selectedViewController: UIViewController? { get set }
  • The index of the currently selected list view controller. The default value is 0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger selectedIndex;

    Swift

    var selectedIndex: UInt { get set }
  • The PTOutlineViewController that is added when the control is first instantiated.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTOutlineViewController *_Nonnull outlineViewController;

    Swift

    var outlineViewController: PTOutlineViewController { get }
  • The PTAnnotationViewController that is added when the control is first instantiated.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTAnnotationViewController *_Nonnull annotationViewController;

    Swift

    var annotationViewController: PTAnnotationViewController { get }
  • The PTBookmarkViewController that is added when the control is first instantiated.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTBookmarkViewController *_Nonnull bookmarkViewController;

    Swift

    var bookmarkViewController: PTBookmarkViewController { get }