Information Technology Reference
In-Depth Information
When setting up IB for editing, it's useful to have at least one of the code files open at the same time. The Utility
area at the right is essential.
NOTE
If your monitor is wide enough to show the Project Navigator at the left without hiding the other areas, you can
leave it in place. It's not critical for this project.
Drag and drop a Round Rect Button object from the Object Library onto the view, as shown. Xcode does two
things as you do this:
When you select any item in the Library, a large tool tip appears to the left with a description of the ob-
ject. You can dismiss the tool tip by clicking the Done button or by clicking elsewhere in the editor area.
When you drag an item onto a view, guidelines appear, as shown in Figure 7.14. You can use the lines to
center an object in the view or to align it with other objects. In the figure, the button is centered in the view.
FIGURE 7.14
Add a button using IB's automatic guidelines to center it in the view.
Search WWH ::




Custom Search