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)