1 A Simple iOS Application
In this chapter, you are going to write an iOS application named Quiz. This application will show a question and then reveal the answer when the user taps a button. Tapping another button will show the user a new question (Figure 1.1).
Figure 1.1 Your first application: Quiz
When you are writing an iOS application, you must answer two basic questions:
-
How do I get my objects created and configured properly? (Example: “I want a button here entitled Show Question.”)
-
How do I deal with user interaction? (Example: “When the user taps the button, I want this piece of code to be executed.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access