O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying Out the User Interface

Select Main.storyboard from the project navigator. The iOS single view application template is much simpler than the Cocoa storyboard you used in the previous chapter. Your storyboard currently contains only a single empty view controller.

Add a button to your view controller. In the object library (at the bottom of the utilities pane), search for “button.” Drag a Button onto your view controller canvas and drop it in the top-right corner, where it will snap into place against the dashed blue guidelines. Finally, change the title of the button to “Insert” in the attributes inspector. Your view controller should look like the screen shown in Figure 27.4.

Figure 27.4 iTahDoodle with Insert button

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required