How the controller is created:
1. Code directly created Zyviewcontroller * Vc = [[Zyviewcontroller alloc] init];
2. By Storyboard:
Uistoryboard *storyboard = [Uistoryboard storyboardwithname:@ "Test" bundle:nil]; Load the storyboard file first
Zyviewcontroller *VC = [Storyboard Instantiateinitialviewcontroller]; Initialize the initial controller (the controller that the arrow points to)
Zyviewcontroller *VC = [Storyboard instantiateviewcontrollerwithidentifier:@ "NJ"]; (via IdentiFi initialization controller)
3. By xib
Zyviewcontroller *VC = [[Zyviewcontroller alloc] initwithnibname:@ "Zyviewcontroller" bundle:nil];
If the controller is defined in the Proxy method Didfinshedlaunch method of UIApplication, and the main controller is set, the content of the code wearing is finally displayed, the reason Storybord is automatically converted into code, Appears in front of the manual creation, so it is overwritten ******************
The creation of the Controller view (Loadview cannot invoke [super Loadview] in it if the equivalent of no rewrite Loadview is called, if overriding Loadview must create a view inside, Otherwise, Xcode will not be prompted to find Rootview)
Controller view is lazy loading, when used to load, Controller view life cycle method Execution order