Skip to content

A "twitter for iPad" / "MyPad for iPad" like navigation controller. Aim for a less-pain code transition from the UINavigationController based iPhone codes to a CXStackNavigationController based iPad app.

Notifications You must be signed in to change notification settings

xingzhisg/CXStackNavigationController

Repository files navigation

CXStackNavigationController is a replacement for UINavigationController.

On iPad, CXStackNavigationController presents a "Twitter for iPad" or "MyPad" like push and pop behavior to its stacked view controllers.

Usage:

When alloc a CXNavigationController, use -(id)initWithRootViewController:

like UIViewControllers in the UINavigationController's stack, you can easily push in and pop out a detailedViewcontroller from a UIViewController in the stack by using:

#import "CXStackNavigationController.h"
#import "UIViewController+Stack.h"

// push at the end
[self.stackViewController pushViewController:detailedController animated:YES];

// push in the middle of the statck
[self.stackViewController pushViewController:detailedController byDismissingViewControllersBeyond:self animated:YES];

// pop
[self.stackViewController popViewControllerWithAnimation:SLIDE_HORIZONAL];


About

A "twitter for iPad" / "MyPad for iPad" like navigation controller. Aim for a less-pain code transition from the UINavigationController based iPhone codes to a CXStackNavigationController based iPad app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published