Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android (Jason Arnold's Library) by Jakob Iversen & Michael Eierman

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android (Jason Arnold's Library) by Jakob Iversen & Michael Eierman

Author:Jakob Iversen & Michael Eierman
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2014-03-24T16:00:00+00:00


This opens an extra editor that by default contains the file that best matches what is displayed in the main window. For this user interface screen, this is the header file for the view controller (LMAViewController.h). We will need to create what’s called outlets for those user interface elements we want to be able to access from the code. This includes the two text fields, where we need to be able to read the text the user entered and the bottom label that will be updated to contain our own text string based on the two text fields. To create the outlets, hold down the Control key, click the text field, and drag to the view controller between the @interface and @end entries. Then let go, and you should see the situation as shown in Figure 9.13.

Figure 9.13 Creating an outlet for a user interface element.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.