Chapter 5. Capturing users’ actions: adding buttons
This chapter covers
- Creating an app with a button
- Buttons and how to use them
- Changing labels
You’re going to create another app in this chapter. This one will have a button the user can tap. Buttons are used throughout iPhone and iPad apps to allow the user to do some kind of action, such as make a phone call. Each number on the phone number screen is a button, for example, and the call and hang-up buttons are buttons too.
In this chapter you’ll add a label and a button to the app and write some code. The code you write will make the button change what the label displays. You’re also going to change how the label looks by implementing cosmetic changes.
Get Anyone Can Create an App 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.