As you lay out your app’s user interface elements in Interface Builder, you can write the code that implements their behavior in the assistant editor.įor more detail on the process of building a user interface and creating and configuring interface builder files, see Xcode Help.
To add user interface elements, drag objects from the utilities area onto the Interface Builder canvas, where you arrange the elements, set their attributes, and establish connections between them and the code in your source files. At runtime, nibs are loaded and instantiated to create new views. storyboard files into binary files known as nibs. storyboard files are stored by Xcode in XML format. Default user interface files are supplied by Xcode when you create new projects from its built-in templates.
Unlike a xib, a storyboard can contain many view controllers and the transitions between them. A storyboard specifies a set of view controllers and segues between those controllers. A xib file usually specifies one view controller or menu bar. A user interface file has the filename extension. Select a user interface file in the project navigator, and the file’s contents open in Interface Builder in the editor area of the workspace window. You create your app’s user interface in Interface Builder.