/uiviewcontroller-controller

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

Primary LanguageObjective-CMIT LicenseMIT

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