//first, according to the Storyboardid (need to set in storyboard), through the Viewcontroller storyboard to load:Uistoryboard*storyboard = [Uistoryboard storyboardwithname:@"Main"Bundle:nil]; Uiviewcontroller*VC = [Storyboard Instantiateviewcontrollerwithidentifier:@"FICOWVC"];//second, through the uiviewcontroller corresponding. xib file loading:Uiviewcontroller *VC = [[Uiviewcontroller alloc] Initwithnibname:@"FICOWVC"Bundle:nil];//third, the direct loading Uiviewcontroller class:Uiviewcontroller *VC =[[Uiviewcontroller alloc] init];/*Note: The Xib files that loadnibnamed and initwithnibname need to load are not the same. The file owner of the Xib files that Initwithnibname needs to load should be changed to the class that needs to be loaded, and the file owner of the Xib files that loadnibnamed needs to load is nsobject. */
Reprint Please specify source: http://www.cnblogs.com/ficow/p/7253666.html
Several methods of IOS loading Viewcontroller