Contents
About Creating Your First iOS App 4
Getting Started 6
Create and Test a New Project 6
Find Out How an App Starts Up 12
Recap 17
Inspecting the View Controller and Its View 18
Use the Inspector to Examine the View Controller 18
Change the View’s Background Color 22
Recap 26
Configuring the View 27
Add the User Interface Elements 27
Create an Action for the Button 35
Create Outlets for the Text Field and the Label 38
Make the Text Field’s Delegate Connection 42
Test the App 43
Recap 44
Implementing the View Controller 45
Add a Property for the User’s Name 45
Implement the changeGreeting: Method 48
Configure the View Controller as the Text Field’s Delegate 49
Test the App 51
Recap 51
Troubleshooting and Reviewing the Code 52
Code and Compiler Warnings 52
Check the Storyboard File 52
Delegate Method Names 53
Code Listings 53
The Interface file: HelloWorldViewController.h 53
About Creating Your First iOS App 4
Getting Started 6
Create and Test a New Project 6
Find Out How an App Starts Up 12
Recap 17
Inspecting the View Controller and Its View 18
Use the Inspector to Examine the View Controller 18
Change the View’s Background Color 22
Recap 26
Configuring the View 27
Add the User Interface Elements 27
Create an Action for the Button 35
Create Outlets for the Text Field and the Label 38
Make the Text Field’s Delegate Connection 42
Test the App 43
Recap 44
Implementing the View Controller 45
Add a Property for the User’s Name 45
Implement the changeGreeting: Method 48
Configure the View Controller as the Text Field’s Delegate 49
Test the App 51
Recap 51
Troubleshooting and Reviewing the Code 52
Code and Compiler Warnings 52
Check the Storyboard File 52
Delegate Method Names 53
Code Listings 53
The Interface file: HelloWorldViewController.h 53
The Implementation File: HelloWorldViewController.m 53