RBSlidingPageContainerViewController Class Reference
Inherits from | UIViewController |
---|---|
Conforms to | RBSlidingPageContainerViewDelegate |
Declared in | RBSlidingPageContainerViewController.h |
view
The underlying RBSlidingPageContainerView
object.
@property (nonatomic, nonnull) RBSlidingPageContainerView *view
Discussion
The underlying RBSlidingPageContainerView
object.
Declared In
RBSlidingPageContainerViewController.h
delegate
A delegate to receive tab page selection events.
@property (nonatomic, weak, nullable) id<RBSlidingPageContainerViewControllerDelegate> delegate
Discussion
A delegate to receive tab page selection events.
Declared In
RBSlidingPageContainerViewController.h
pageControllerCount
The number of tab pages currently in the container.
@property (nonatomic, readonly) NSUInteger pageControllerCount
Discussion
The number of tab pages currently in the container.
Declared In
RBSlidingPageContainerViewController.h
currentPageControllerIndex
The index of the current page.
@property (nonatomic, readonly) NSUInteger currentPageControllerIndex
Discussion
The index of the current page.
Declared In
RBSlidingPageContainerViewController.h
currentPageViewController
The current page UIViewController
object.
@property (nonatomic, readonly, nullable) UIViewController *currentPageViewController
Discussion
The current page UIViewController
object.
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.
Discussion
Gets the page view controller 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.
Discussion
Gets the title of the page at the given index.
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 |
---|---|
title |
The title of the page. |
Discussion
Add a new page to the controller.
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 |
---|---|
title |
The title of the page. |
index |
The index at which to insert the page. |
Discussion
Insert a new page to the controller at the given index.
Declared In
RBSlidingPageContainerViewController.h
– removePageController:
Remove the given page from the container.
- (void)removePageController:(nonnull UIViewController *)pageController
Parameters
pageController |
The page |
---|
Discussion
Remove the given page from the container.
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. |
---|
Discussion
Remove the page at the given index.
Declared In
RBSlidingPageContainerViewController.h
– removeAllPageControllers
Remove all pages from the container.
- (void)removeAllPageControllers
Discussion
Remove all pages from the container.
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. |
Discussion
Set the title of the page at the given index.
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 |
---|---|
animated |
Whether or not the transition should be animated. |
completion |
An optional block to be called when the transition is complete. |
Discussion
Moves to the given page view controller.
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. |
Discussion
Moves to the given page view controller.
Declared In
RBSlidingPageContainerViewController.h