Index

RBSlidingViewController.h

Protocols

Classes


RBSlidingViewController

A container view controller that manages pages with tabs.

Properties

The underlying RBSlidingView object.
public view RBSlidingView { get set }

A delegate to receive tab page selection events.
public weak delegate RBSlidingViewControllerDelegate? { get set }

The number of tab pages currently in the container.
public pages int { get }

The index of the current page.
public currentPageControllerIndex int { get }

The current page UIViewController object.
public currentPageViewController UIViewController? { get }

Functions

Gets the page view controller at the given index.
@param index : The index of the page.
@returns The UIViewController object at the given index.
- (nonnull UIViewController *)pageControllerAtIndex:(NSInteger)index;

Add a new page to the controller.
@param pageController : The page UIViewController object.
- (void)addPageController:(nonnull UIViewController *)pageController;

Insert a new page to the controller at the given index.
@param pageController : The page UIViewController object.
@param index : The index at which to insert the page.
- (void)insertPageController:(nonnull UIViewController *)pageController atIndex:(NSInteger)index;

Remove the given page from the container.
@param pageController : The page UIViewController object.
- (void)removePageController:(nonnull UIViewController *)pageController;

Remove the page at the given index.
@param index : The index of the page to remove.
- (void)removePageControllerAtIndex:(NSInteger)index;

Moves to the given page view controller.
@param pageController : The page UIViewController object to move to.
@param animated : Whether or not the transition should be animated.
@param completion : An optional block to be called when the transition is complete.
- (void)moveToPageController:(nonnull UIViewController *)pageController animated:(BOOL)animated completion:(nullable dispatch_block_t)completion;

Moves to the given page view controller.
@param index : The index of the page to move to.
@param animated : Whether or not the transition should be animated.
@param completion : An optional block to be called when the transition is complete.
- (void)moveToPageControllerAtIndex:(NSInteger)index animated:(BOOL)animated completion:(nullable dispatch_block_t)completion;