Appendix C. Getting Around in Interface Builder

Interface Builder is one of the tools shipped with the iPhone SDK. It is a visual design tool that you can use to build the user interface of your iPhone applications. Although not strictly required for the development of your iPhone applications, Interface Builder plays an integral role in your journey of learning about iPhone application development. This appendix covers some of the important features of Interface Builder.

.XIB WINDOW

The most direct way to launch Interface Builder is to double-click any of the .xib files in your Xcode project. For example, if you have created a View-based Application project, there would be two .xib files in the Resources folder of Xcode. Double-clicking any one of them launches Interface Builder.

When Interface Builder is launched, the first window that you see has the same name as your .xib file (see Figure C-1).

Figure C-1

Figure C.1. Figure C-1

Within this window are several items, and depending on what you double-clicked, you should see some of the following items, such as:

  • File's Owner

  • First Responder

  • View, Table View, Window, and so on

  • Some View Controllers and delegates

By default, the .xib window is displayed in icon mode. But you can also switch to list mode, where you can view some of the items in more detail. For example, Figure C-2 shows that when viewed in list mode, the View item displays a hierarchy of ...

Get Beginning iPhone® SDK Programming with Objective-C® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.