The reason for writing this article is also the teaching material. After roughly scanning the Objective-C tutorial, I found an Xcode 4 iOS Development ininner's Guide. Go to the first example and Start copying the example. It's dumb to click the xib file in the project... Xiami? Is there any xib file in the project?
In the latest version of XCode, storyboard is selected when you create an iOS project by default. If this option is selected, the. xib file is not included in the iOS project, but a storyboard file. If this option is not checked, the xib file will still be created in the old method. Before the storyboard appears, each UIViewController has a corresponding. xib file. Storyboard is introduced in iOS5 SDK. A storyboard usually contains N screen files, showing the "stream" for switching between screens ". In science terminology, it is a state machine. Reference: http://stackoverflow.com/questions/9083759/what-are-the-benefits-of-using-storyboards-instead-of-xib-files-in-ios-programmi, Storyboard is: 1. containers containing all Scene (ViewController, Nav Controller, TabBar Controller, etc.) 2. manage all connections and switches between Scene (called Segue ['segwe done]). You only need to use Ctrl + to drag a View Controller to another View Controller, you can create a new switch.) 3. manage communication between controllers 4. the application "stream" that cannot be obtained from the nib file (xib is a nib without compilation. Xib will be changed to nib during compilation for deployment. Introduced in IB (Interface Builder) 3. Compared with nib, xib is a flat file instead of a binary file, which can be used for version control .) 5. Reduce the total number of files there is a very detailed article about storyboard: http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1 mentioned Storyboard also has disadvantages: Storyboard editor is not as powerful as IB. If you hate Interface Builder and like to program and implement all the UIS by yourself (Is that me ?), I don't like Storyboard very much. Storyboard is more suitable for those who prefer to write less code, the better. ================ By the way, if you want to associate an xib file with a viewcontroller file, you can perform the following steps: 1. open the xib file 2. click the File's Owner in PlaceHolder. It will not be translated into Chinese in the future) 3. click the third button in the right column and modify the Class name (P.S. XCode uses a fully graphical association method to handle the correspondence between ViewController and xib, as well as various elements and properties and functions on ViewController. Based on previous experiences, the game engine Unity3D is also true. Honestly, I personally prefer the VS processing method... It makes people feel more real.
If you want to view what the graphic operations have done, right-click the xib file and choose open as-> Source Code. We can see that the link is managed in XML format. However, a bunch of reference strings similar to "1050106229" and "354080509" are obviously not used to show humans at all ...)