RBNavigationController Class Reference

Inherits from UIViewController
Conforms to UIGestureRecognizerDelegate
Declared in RBNavigationController.h

Overview

A customisable navigation controller.

  viewControllers

An array of the view controllers currently on the navigation stack.

@property (nonatomic, readonly) NSArray *viewControllers

Discussion

An array of the view controllers currently on the navigation stack.

Declared In

RBNavigationController.h

  previousViewController

The view controller behind the currently displayed view controller.

@property (nonatomic, readonly) UIViewController *previousViewController

Discussion

The view controller behind the currently displayed view controller.

Declared In

RBNavigationController.h

  animator

The animator that is used to provide animated push and pop transitions.

@property (nonatomic) RBNavigationAnimator *animator

Discussion

The animator that is used to provide animated push and pop transitions.

Declared In

RBNavigationController.h

  swipePopEnabled

Whether or not the user can swipe from the edge to pop a view controller.

@property (nonatomic) BOOL swipePopEnabled

Discussion

Whether or not the user can swipe from the edge to pop a view controller.

Declared In

RBNavigationController.h

  delegate

An optional delegate to be informed of navigation events.

@property (nonatomic, weak) id<RBNavigationControllerDelegate> delegate

Discussion

An optional delegate to be informed of navigation events.

Declared In

RBNavigationController.h

– viewControllerFromTop:

Retrieves the view controller at the given index from the top. The visible view controller has an index of 0.

- (UIViewController *)viewControllerFromTop:(NSUInteger)index

Parameters

index

The index from the top of the view controller desired.

Return Value

The retrieved view controller.

Discussion

Retrieves the view controller at the given index from the top. The visible view controller has an index of 0.

Declared In

RBNavigationController.h

– pushViewController:animated:completion:

Pushes a view controller to the navigation stack.

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(dispatch_block_t)completion

Parameters

viewController

The view controller to push to the navigation stack.

animated

Whether or not the operation should be animated.

completion

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

Discussion

Pushes a view controller to the navigation stack.

Declared In

RBNavigationController.h

– popToViewController:animated:completion:

Pops all view controllers above the given view controller from the navigation stack. When the operation is complete, the given view controller will be the visible view controller.

- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(dispatch_block_t)completion

Parameters

viewController

The view controller to pop to.

animated

Whether or not the operation should be animated.

completion

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

Return Value

An array of the view controllers that were popped.

Discussion

Pops all view controllers above the given view controller from the navigation stack. When the operation is complete, the given view controller will be the visible view controller.

Declared In

RBNavigationController.h

– popViewControllerAnimated:completion:

Pops the top view controller from the navigation stack.

- (UIViewController *)popViewControllerAnimated:(BOOL)animated completion:(dispatch_block_t)completion

Parameters

animated

Whether or not the operation should be animated.

completion

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

Return Value

The view controller that was popped.

Discussion

Pops the top view controller from the navigation stack.

Declared In

RBNavigationController.h

– popToRootViewControllerAnimated:completion:

Pops all view controllers except the first view controller.

- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated completion:(dispatch_block_t)completion

Parameters

animated

Whether or not the operation should be animated.

completion

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

Return Value

An array of the view controllers that were popped.

Discussion

Pops all view controllers except the first view controller.

Declared In

RBNavigationController.h

– removeViewControllersInRange:

Removes the view controllers in the given range. There is no animation for this operation.

- (void)removeViewControllersInRange:(NSRange)range

Parameters

range

The NSRange of the view controllers to remove.

Discussion

Removes the view controllers in the given range. There is no animation for this operation.

Declared In

RBNavigationController.h

– removeViewControllersBetween:andViewController:

Removes all view controllers between the ones given.

- (void)removeViewControllersBetween:(UIViewController *)viewControllerA andViewController:(UIViewController *)viewControllerB

Parameters

viewControllerA

The first view controller.

viewControllerB

The second view controller.

Discussion

Removes all view controllers between the ones given.

Declared In

RBNavigationController.h