RBSlidingPageContainerViewController Class Reference

Inherits from UIViewController
Conforms to RBSlidingPageContainerViewDelegate
Declared in RBSlidingPageContainerViewController.h

Overview

A container view controller that manages pages with tabs.

  view

The underlying RBSlidingPageContainerView object.

@property (nonatomic, nonnull) RBSlidingPageContainerView *view

Declared In

RBSlidingPageContainerViewController.h

  delegate

A delegate to receive tab page selection events.

@property (nonatomic, weak, nullable) id<RBSlidingPageContainerViewControllerDelegate> delegate

Declared In

RBSlidingPageContainerViewController.h

  pageControllerCount

The number of tab pages currently in the container.

@property (nonatomic, readonly) NSUInteger pageControllerCount

Declared In

RBSlidingPageContainerViewController.h

  currentPageControllerIndex

The index of the current page.

@property (nonatomic, readonly) NSUInteger currentPageControllerIndex

Declared In

RBSlidingPageContainerViewController.h

  currentPageViewController

The current page UIViewController object.

@property (nonatomic, readonly, nullable) UIViewController *currentPageViewController

Declared In

RBSlidingPageContainerViewController.h

– pageControllerAtIndex:

Gets the page view controller at the given index.

- (nonnull UIViewController *)pageControllerAtIndex:(NSUInteger)index

Parameters

index

The index of the page.

Return Value

The UIViewController object at the given index.

Declared In

RBSlidingPageContainerViewController.h

– pageTitleAtIndex:

Gets the title of the page at the given index.

- (nonnull NSString *)pageTitleAtIndex:(NSUInteger)index

Parameters

index

The index of the page

Return Value

The title of the page.

Declared In

RBSlidingPageContainerViewController.h

– addPageController:title:

Add a new page to the controller.

- (void)addPageController:(nonnull UIViewController *)pageController title:(nonnull NSString *)title

Parameters

pageController

The page UIViewController object.

title

The title of the page.

Declared In

RBSlidingPageContainerViewController.h

– insertPageController:title:atIndex:

Insert a new page to the controller at the given index.

- (void)insertPageController:(nonnull UIViewController *)pageController title:(nonnull NSString *)title atIndex:(NSUInteger)index

Parameters

pageController

The page UIViewController object.

title

The title of the page.

index

The index at which to insert the page.

Declared In

RBSlidingPageContainerViewController.h

– removePageController:

Remove the given page from the container.

- (void)removePageController:(nonnull UIViewController *)pageController

Parameters

pageController

The page UIViewController object.

Declared In

RBSlidingPageContainerViewController.h

– removePageControllerAtIndex:

Remove the page at the given index.

- (void)removePageControllerAtIndex:(NSUInteger)index

Parameters

index

The index of the page to remove.

Declared In

RBSlidingPageContainerViewController.h

– removeAllPageControllers

Remove all pages from the container.

- (void)removeAllPageControllers

Declared In

RBSlidingPageContainerViewController.h

– setPageControllerTitle:atIndex:

Set the title of the page at the given index.

- (void)setPageControllerTitle:(nonnull NSString *)title atIndex:(NSUInteger)index

Parameters

title

The title to assign to the page.

index

The index of the page to update the title of.

Declared In

RBSlidingPageContainerViewController.h

– moveToPageController:animated:completion:

Moves to the given page view controller.

- (void)moveToPageController:(nonnull UIViewController *)pageController animated:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

pageController

The page UIViewController object to move to.

animated

Whether or not the transition should be animated.

completion

An optional block to be called when the transition is complete.

Declared In

RBSlidingPageContainerViewController.h

– moveToPageControllerAtIndex:animated:completion:

Moves to the given page view controller.

- (void)moveToPageControllerAtIndex:(NSUInteger)index animated:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

index

The index of the page to move to.

animated

Whether or not the transition should be animated.

completion

An optional block to be called when the transition is complete.

Declared In

RBSlidingPageContainerViewController.h