RBSwitchContainerViewController Class Reference
Inherits from | UIViewController |
---|---|
Declared in | RBSwitchContainerViewController.h |
currentViewController
Gets or sets the currently displayed view controller, or nil
if no view controller is currently displayed.
@property (nonatomic, nullable) UIViewController *currentViewController
Discussion
Gets or sets the currently displayed view controller, or nil
if no view controller is currently displayed.
Declared In
RBSwitchContainerViewController.h
viewControllerCount
The number of view controllers in the container.
@property (nonatomic, readonly) NSUInteger viewControllerCount
Discussion
The number of view controllers in the container.
Declared In
RBSwitchContainerViewController.h
– viewControllerAtIndex:
Gets the child view controller at the given index.
- (nonnull UIViewController *)viewControllerAtIndex:(NSUInteger)index
Parameters
index |
The index of the child view controller. |
---|
Return Value
The retrieved child view controller.
Discussion
Gets the child view controller at the given index.
Declared In
RBSwitchContainerViewController.h
– addViewController:
Add a new child view controller to the container.
- (void)addViewController:(nonnull UIViewController *)viewController
Parameters
viewController |
The child view controller. |
---|
Discussion
Add a new child view controller to the container.
Declared In
RBSwitchContainerViewController.h
– removeViewController:
Remove the child view controller.
- (void)removeViewController:(nonnull UIViewController *)viewController
Parameters
viewController |
The child view controller. |
---|
Discussion
Remove the child view controller.
Declared In
RBSwitchContainerViewController.h