Small but useful category on UIViewController
that allows you to instantiate controller and navigation controller.
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];
Add UIViewController+Controller
pod to your Podfile