Skip to content

willchang/CardStackNavigationController

Repository files navigation

CardStackNavigationController

CardStackNavigationController is a custom navigation controller/container (but not a subclass of UINavigationController) whose transitions have a similar feel to iOS 7's navigation controller transitions. Its usage is quite similar as you can see below!

Usage

// Create a root view controller
TestViewController *testViewController = [[TestViewController alloc] init];

// Create a card stack navigation controller with the root view controller
CardStackNavigationController *navCon = [[CardStackNavigationController alloc] initWithRootViewController:testViewController];

// Add the card stack navigation controller's view to any view
[self.view addSubview navCon.view];

// Push a new view controller
UIViewController *viewController = [[UIViewController alloc] init];

// The card stack navigation controller is accessible via the 'cardStackNavigationController' property of UIViewController
[testViewController.cardStackNavigationController pushViewController:viewController animated:YES completion:nil];

[viewController release];
[testViewController release];

About

Custom navigation controller that mimics the "card stack" animation behaviour of iOS 7's UINavigationController.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors