There are three ways to create a controller view in iOS apps: Storyboard, Xib, and code, when the app starts to load the view (Apple official):
650) this.width=650; "src=" Http://images.cnitblog.com/blog2015/639800/201503/311436309675553.png "width=" 500 " height= "427" alt= "311436309675553.png"/>
Let's say I'm using a Wysviewcontroller controller.
When the app starts, it loads the controller's Loadview,
1, if there is code in the Loadview, directly with the code in the Loadview to create the view
2, if there is no code in Loadview,
A, when you use storyboard, the program loads the storyboard to create the view,
B, when you use Xib, the program loads the Xib to create the view,
A, when loading xib, its loading xib format is to first try to load Wysview.xib,
b, if there is no wysview.xib, then try to load wysviewcontroller.xib,
C, if none exist, then an empty view is created automatically
650) this.width=650; "src=" Http://images.cnitblog.com/blog2015/639800/201503/311405115766351.png "width=" 655 " height= "345" alt= "311405115766351.png"/>
This article is from the "Future" blog, please be sure to keep this source http://yuanshui.blog.51cto.com/2097536/1632849
View creation process in iOS