Graphics Programs Reference
In-Depth Information
This object doesn't have much use in iOS right now; it is a relic from Desktop
Cocoa. You can ignore it.
View
An instance of UIView that represents the application interface.
The canvas portion of the editor area is for viewing and manipulating the layout of your
interface. Click on the View object in the outline view to display it on the canvas. You can
move the view by dragging in the blue-shaded area around it. Note that moving the view
doesn't change anything about the actual object; it just re-organizes the canvas. You can
also close the view by clicking on the x in its top left corner. Again, this doesn't delete the
view; it just removes it from the canvas. You can get it back by selecting it again in the
outline view.
The view object in Figure 1.6 is the foundation of your user interface and appears exactly
as it will in your application. Flip back to Figure 1.1 , and you'll see that Quiz needs four
additional interface elements: two text labels and two buttons.
To add these elements, you need to get to the utilities area . In the top-right corner of
Xcode 's toolbar, find the buttons labeled View . These buttons toggle the
navigator, debug area, and utilities area. Click the right button to reveal the utilities area
( Figure 1.4 ) .
The utilities area appears to the right of the editor area and has two sections: the inspector
and the library . The top section is the inspector, which contains settings for the file that is
currently displayed in the editor area. The bottom section is the library, which lists items
you can add to a file or project. You can change the relative sizes of these sections by
dragging the line between them.
At the top of each section is a selector for different types of inspectors and libraries ( Fig-
ure 1.7 ) . From the library selector, select the icon to reveal the object library . This lib-
rary contains the objects you can add to a XIB file.
Figure 1.7 Xcode utilities area
 
Search WWH ::




Custom Search