Start of Project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.