What did Loadview do when the app was launched?
Check the official Apple documentation below:
1. When you access a Viewcontroller view property, if the value of the view is nil at this point, then Viewcontroller will automatically call the Loadview method. This method loads the nib file or creates an empty view object (Self.view = nil).
2. When creating a view using the nib file, it is not necessary to overload the Loadview method, because Loadview is the role of loading nib. If you want to reload, you must call [Super Loadview], otherwise the nib file will not be loaded.
3. When creating a view without nib, overloading this method (when nothing is written) defaults to creating an empty view object, which is Self.view = nil. At this point you must create a UIView object yourself, and then specify Self.view = MyView; But there's no need to call super because you don't need to create a view object in the Super method anyway. If you call super, it's a waste of resources.
4, in short, Loadview will only automatically load xib with the same name, or call the parent class method to create an empty view (nil black), and will not load the controller Viewcontroller from Storyboad.
What did Loadview do when the app was launched?