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

Get Swift 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.