© Molly K. Maskrey 2017

Molly K. Maskrey, Beginning iPhone Development with Swift 4, https://doi.org/10.1007/978-1-4842-3072-5_3

3. Basic User Interactions

Molly K. Maskrey

(1)Parker, Colorado, USA

Your Hello World app provided a good introduction to iOS development using Xcode and Cocoa Touch, but it lacked a crucial capability—the ability to interact with the user. Without the ability to accept user input, you severely limit the usefulness of your efforts.

In this chapter, you’ll write a slightly more complex application—one that will feature two buttons and a label (see Figure 3-1). When the user taps either of the buttons, the label’s text changes. This demonstrates the key concepts involved in creating interactive iOS apps. You’ll also learn ...

Get Beginning iPhone Development with Swift 4: Exploring the iOS SDK 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.