© Wallace Wang 2019
Wallace WangBeginning iPhone Development with Swift 5https://doi.org/10.1007/978-1-4842-4865-2_7

7. Using Common User Interface Objects

Wallace Wang1 
(1)
San Diego, CA, USA
 

A user interface must display information to the user. In addition, a user interface must also allow the user to input data such as text or numbers. Finally, a user interface must allow the user to control the app. Displaying data, accepting data, and accepting commands form the heart of any user interface.

The three most common types of user interface objects are
  • Labels

  • Text fields

  • Buttons

Labels simply display text. Text fields can display text but are most often used to allow the user to type in text. Buttons can also display text (usually the name of the command ...

Get Beginning iPhone Development with Swift 5: 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.