The difference between nib, xib, and storyboard for iOS

Source: Internet
Author: User

We can often hear terms like nib development or xib development, but what is the difference between them? In fact, the two mean the same thing.

NIB is the product of the previous version of 3.0, under the terminal we can see that the nib is actually a folder, there are executable binary files;

Xib is an XML-based profile that enables visual programming.

Either nib or xib will eventually be translated into an executable nib file before executing the Uiviewcontroller life cycle function Loadview.


Storyboard is a description file for multiple Xib file collections, also in XML format.

So the difference between storyboard and Xib is:

There can be multiple xib files in a project, and a xib file corresponds to a view controller and multiple views. When using storyboard, a project requires only one master storyboard file. Therefore, in the case of multiple view controllers, it is convenient to use storyboard management, and storyboard can also describe the navigation relationship between interfaces.



The difference between nib, xib, and storyboard for iOS

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.