The creation of the iOS controller. In addition to the common Alloc init, there are ways to load storyboard and xib by loading the following:
1. Code ALLOC init Creation method
Viewcontroller *vc= [[Viewcontroller alloc] init];
2.storyboard Creating a Controller
1 "Loading the storyboard file developed
Uistoryboard *board = [Uistoryboard storyboardwithname:@ "Viewcon" bundle:nil];
Can be loaded into the developed Stroryboard file, but the storyboard file may contain multiple controllers, which will need to be specified
2 "Create the specified controller
Viewcontroller *VC = [Board instantiateviewcontrollerwithidentifier:@ "Viewcon"];
or directly create the controller that the arrow refers to
Viewcontroller *VC = [board Instantiateinitialviewcontroller];
3.xib Creating a Controller
Viewcontroller *VC = [[Viewcontroller alloc] initwithnibname:@ "Viewcon" bundle:nil];
The premise is that the class type of the Filesowner of the viewcon.xib must be viewcontroller, and the creation of the view or the drag control connection is complete.
Or you get the controller and set it directly through the code.
How iOS controllers are created