Skip to content

Small but useful category on UIViewController that allows you to instantiate controller and navigation controller

License

Notifications You must be signed in to change notification settings

belkevich/uiviewcontroller-controller

Repository files navigation

UIViewController+Controller

About

Small but useful category on UIViewController that allows you to instantiate controller and navigation controller.


Using

Instantiate controller

SimpleViewController *controller = [SimpleViewController controller];

Instantiate controller with Nib name. It's can be useful when controller uses XIB of base controller

EnhancedViewController *controller = [EnhancedViewController controllerWithNibName:@"SimpleViewController"];

Instantiate navigation controller with provided controller as root

UINavigationController *controller = [SimpleViewController navigationController];

Installation

Add UIViewController+Controller pod to your Podfile


News and updates

@okolodev

About

Small but useful category on UIViewController that allows you to instantiate controller and navigation controller

Resources

License

Stars

Watchers

Forks

Packages