Skip to content

Simple but useful category on UIViewController to allow your to instantiate a UIViewController and UINavigationController.

License

Notifications You must be signed in to change notification settings

lukedixon/UIViewController-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIViewController-Controller

Simple but useful category on UIViewController to allow your to instantiate a UIViewController and UINavigationController.

###Usage

Instantiating a UIViewController

MainViewController *mainViewController = [MainViewController controller];

Instantiate controller with a nib name

MainViewController *mainViewController = [MainViewController controllerWithNibName:@"MainViewController"];

Instantiate a UINavigationController with the given controller as the root

UINavigationController *navigationController = [MainViewController navigationController];

About

Simple but useful category on UIViewController to allow your to instantiate a UIViewController and UINavigationController.

Resources

License

Stars

Watchers

Forks

Packages

No packages published