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.