RBSwitchContainerViewController Class Reference

Inherits from UIViewController
Declared in RBSwitchContainerViewController.h

Overview

A container of view controllers that can be switched.

  currentViewController

Gets or sets the currently displayed view controller, or nil if no view controller is currently displayed.

@property (nonatomic, nullable) UIViewController *currentViewController

Declared In

RBSwitchContainerViewController.h

  viewControllerCount

The number of view controllers in the container.

@property (nonatomic, readonly) NSUInteger viewControllerCount

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.

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.

Declared In

RBSwitchContainerViewController.h

– removeViewController:

Remove the child view controller.

- (void)removeViewController:(nonnull UIViewController *)viewController

Parameters

viewController

The child view controller.

Declared In

RBSwitchContainerViewController.h