The UIViewController lazily loads its view only when it is needed to display. This applies to how to programmatically create a view using -loadView or unarchiving from nib.
You can force the view to load by specifying the view property of the UIViewController.
Sean murphy
source share