Database Reference
In-Depth Information
Change Class to SettingsViewController .
6.
7.
Ctrl-drag from the Settings View Controller to the first text field and select
txtDisplayName .
8.
Ctrl-drag from the first text field to the Settings View Controller and select
delegate under Outlets.
9.
Ctrl-drag from the Settings View Controller to the second text field and select
txtFavoriteNumber .
10.
Ctrl-drag from the second text field to the Settings View Controller and select
delegate under Outlets.
11. Ctrl-drag from the Close Bar Button Item to Settings View Controller and
select ā€œ btnClosePressed: ā€ under Sent Actions.
Now you can build and run your app in the simulator. You should see the defaults when you first
open the app. Pressing the ā€œIā€ button will take you to the Settings screen where you can change the
values for Display Name and Favorite Number. When you press the Close button in the navigation
bar you will be taken back to the Main Screen. You should immediately see the new Display Name
and Favorite Number that you entered in the Settings screen as shown in Figures 4-18 through 4-20 .
Figure 4-18. Initial screen of your app
 
Search WWH ::




Custom Search