NIB, Xib, Storyboard (Storyboard)

Source: Internet
Author: User

Nib:next Interface Builder's abbreviation

Abbreviation for xib:xml NIB

Same point:

Both NIB and Xib are Interface Builder's graphical interface design documentation. Interface Builder "freezes" objects in the window, menu bar, and various controls on the window in a nib document, and when the program runs, the objects "wake up";

Different points:

NIB is a binary file, Xib is a plain text file, in XML format, which facilitates version control and diff;

Inheritance:

Initially only nib, later renamed it to Xib, but always follow the name nib;

Storyboard is to replace the xib;

Advantages of Storyboard:

1, using storyboard, a project has only one storyboard file; When Xib is used, xib corresponds to the number of controllers, that is, if the project has multiple view controllers, there will be multiple xib files;

2, the relationship between storyboard and views can be clearly reflected in the IB designer, while the relationship between xib and view needs to see the relevant code;

When the application data is large, the screen is many, the relationship is very complex, if you use storyboard, then the work in the IB designer will become very complex, in addition to the overall performance of the project will be affected;

In addition, team cooperation is not convenient, because the merger of storyboard will be very troublesome;

(That's why it's almost a code implementation to see the company, without using storyboard)

NIB, Xib, Storyboard (Storyboard)

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.