NIB is just data,
Using Xib
Erase everything, add code
Self.window = [[UIWindow alloc]initwithframe:[uiscreen mainscreen].bounds]; New ]; [Self.window makekeyandvisible];
Uitabbarcontroller,uinavigationcontroller, with the control of the VC system does not automatically go xib.,
First the code, then the system automatically resolves the Xib creation interface
Use SB; (compare xib, more control functions, such as jump, VC, Xib only display function)
Directly create SB, set the startup item, set the portal (the system automatically creates the above code), without code, the system automatically resolves SB (with xib data), based on the creation of the interface;
Xib parsing
Uinib,nsboundle
SB Analysis
Uistoyboard
// parsing xib uinib *nib = [uinib nibwithnibname:@ "1" Bundle:nil]; *view = [[Nib instantiatewithowner:nib options:0] Objectatindex:1]; // parsing SB Uistoryboard *SB = [Uistoryboard storyboardwithname:@ "1" Bundle:nil]; *VC = [sb Instantiateinitialviewcontroller]; = VC;
Parsed, then it becomes an object in memory, and if we get a pointer to this object,
1. By parsing into data, to get the view pointer, and then to operate, this pointer can only parse processing
2. Through the wiring, get the parsed out of the view.subviews pointers, this can be used tag
Start of Project