Building an Interface

In the project navigator, find the class files for BNRQuizViewController. When you created this class, you checked the box for With XIB for user interface, so BNRQuizViewController came with a third class file: BNRQuizViewController.xib. Find and select BNRQuizViewController.xib in the project navigator to open it in the editor area.

When Xcode opens a XIB (pronounced zib) file, it opens it with Interface Builder, a visual tool where you can add and arrange objects to create a graphical user interface. In fact, XIB stands for XML Interface Builder.

In many GUI builders on other platforms, you describe what you want an application to look like and then press a button to generate a bunch of code. Interface ...

Get iOS Programming: The Big Nerd Ranch Guide 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.