Home > Store

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming

Register your product to gain access to bonus material or receive a coupon.

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming

eBook (Watermarked)

  • Your Price: $31.99
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Not for Sale


  • Copyright 2014
  • Dimensions: 7" x 9"
  • Edition: 1st
  • eBook (Watermarked)
  • ISBN-10: 0-13-309450-2
  • ISBN-13: 978-0-13-309450-3

Covers iOS 7 and Xcode 5

Learning iOS Developmentis the perfect first book for every new iOS 7 developer. It delivers  a complete foundation for iOS development, including an introduction to the Objective-C language, Xcode development tools, best-practice user interface development, and best practices for all  aspects of app development and deployment.

Throughout Learning iOS Development, you explore the iOS development process as you create  and expand a handy car valet app. The hands-on projects enable you to create meaningful code  as soon as possible, building confidence and mastery. The annotated code listings work with all  the latest iOS technology, so you’ll be ready to jump into this exciting development field.

With Learning iOS Development, it’s easy to learn at your own pace, on your own--or to deepen  the knowledge you may be gaining in a classroom or workplace.

Coverage includes

  • Installing all the tools, programs, and devices  you need to create iOS apps
  • Building your first app and mastering the  essentials of Objective-C
  • Making the most effective use of device memory
  • Storyboarding your interface and connecting it to your underlying code
  • Using Auto Layout to support devices with different sizes and orientations
  • Managing app data with Core Data
  • Creating sophisticated custom gestures
  • Deploying your app through Apple’s App Store
  • Quickly localizing your app for multiple languages  and countries
  • Implementing scrolling, navigation, table views,  and other core iOS features
  • Mastering advanced table views and navigation,  including iPad split views
  • Passing code encapsulated in blocks for communicating between parts of your app and with the system
  • Tuning and debugging your apps for the best  performance and quality
  • Discovering great resources to take your next steps  as an iOS developer

Sample Content

Table of Contents

Foreword     xvi
Preface     xx
Chapter 1: Hello, iOS SDK     1

Installing Xcode     1
About the iOS SDK     2
What You Get for Free     3
iOS Developer Program (Individual and Company)     4
Developer Enterprise Program     4
Developer University Program     5
Registering     5
iTunes U and Online Courses     5
The iOS SDK Tools     6
Testing Apps: The Simulator and Devices     7
Simulator Limitations     8
Tethering     10
iOS Device Considerations     11
Understanding Model Differences     15
Screen Size     15
Camera     16
Audio     16
Telephony     16
Core Location and Core Motion Differences     17
Vibration Support and Proximity     17
Processor Speeds     17
OpenGL ES     18
iOS     18
Summary     19
Chapter 2: Objective-C Boot Camp     21
Building Hello World the Template Way     21
Creating the Hello World Project     21
A Quick Tour of the Xcode Project Interface     25
Adding the Hello World Label     28
Objective-C Boot Camp     30
The Objective-C Programming Language     31
Classes and Objects     35
The CarValet App: Implementing Car Class     41
Implementing Car Methods     46
Properties     50
Creating and Printing Cars     53
Properties: Two More Features     55
Custom Getters and Setters     56
Subclassing and Inheritance: A Challenge     58
Inheritance and Subclassing     59
Summary     62
Challenges     63
Chapter 3: Introducing Storyboards     65
Storyboard Basics     65
Scenes     66
Scene 1: Creating the Add/View Scene     67
Adding the Add/View Visual Elements     67
Adding the Initial Add/View Behaviors     72
Adding Car Display Behaviors     82
Adding Previous and Next Car Buttons     86
Scene 2: Adding an Editor     89
Adding the Editor Visual Elements     91
Adding Editor Behaviors     94
Hooking It All Together     98
Why Not Segue Back?     106
Improving the Storyboard: Take 1     107
Exchanging Data Using a Protocol     108
Improving the Storyboard: Take 2     112
Summary     115
Challenges     116
Chapter 4: Auto Layout     117
Auto Layout Basics     117
Constraints     120
Perfecting Portrait     131
Thinking in Constraints     132
What Makes a Complete Specification     133
Adding/Viewing Cars: Designing and
Implementing the Constraints     134
Edit Car: An Initial Look     155
Adding Landscape     156
Adding and Viewing Cars: Designing the Landscape Constraints     158
Summary     180
Challenges     181
Chapter 5: Localization     183
Localization Basics     183
Redirection     184
Formats     187
Preparing the App for Localization     189
Setting Up Localization for the Add/View Car Scene     191
German Internationalization     203
Adding the German Locale     203
Changing the Device Language     206
Updating the German Localizable.strings     207
Changing Label Constraints     209
Formatting and Reading Numbers     213
Right-to-Left: Arabic Internationalization     215
Adding Arabic Strings     215
Making Dates and Numbers Work     219
Text Alignment     222
Summary     224
Challenges     224
Chapter 6: Scrolling     225
Scrolling Basics     225
Bounce Scrolling     227
Adding a Scroll View to the View/Edit Scene     227
Handling the Keyboard     230
Adding the Scroll View     231
Resizing for the Keyboard     234
Adding Resizing     239
Scrolling Through Content     240
Populating the Scroll View     241
Adding Paging     243
Adding Zoom     245
Rotation     248
What Car Is This?     249
Summary     250
Challenges     251
Chapter 7: Navigation Controllers I: Hierarchies and Tabs     253
Navigation Controller     254
Navigation Controller Classes     256
Message-Based Navigation     263
A Bit of Color     264
Tab Bar Controller     267
How the Tab Bar Works     268
CarValet: Adding a Tab Bar     270
Car Valet: Moving Info     272
Summary     273
Challenges     274
Chapter 8: Table Views I: The Basics     275
Introduction to Table Views     275
Project TableTry     277
Phase I: Replacing the Add/View Scene     283
Adding a Car View Cell     285
Adding New Cars     287
Removing Cars     288
Phase II: Adding an Edit Screen Hierarchy     291
Adding a View Car Scene     292
Populating the View Car Scene with Data     294
Editing Data     296
Editing the Year     307
Summary     314
Challenges     315
Chapter 9: Introducing Core Data     317
Introduction to Core Data     318
Moving CarValet to Core Data     320
Adding the CDCar Model     321
Adding Core Data Boilerplate Code     324
Converting CarTableViewController     326
Easier Tables: NSFetchedResultsController     332
Part 1: Integrating NSFetchedResultsController     333
Part 2: Implementing NSFetchedResultsControllerDelegate     336
Summary     339
Challenges     340
Chapter 10: Table Views II: Advanced Topics     341
Custom Table View Cells     341
Adding the Custom Cell Visual Elements     343
Sections and Sorting     345
Section Headers     346
Enabling Changing of Section Groups     349
Adding an Index     355
Showing the Year in an Index     357
Searching Tables     358
Adding Searching     361
Summary     369
Challenges     370
Chapter 11: Navigation Controllers II: Split View and the iPad     371
Split View Controller     372
Adding a Split View Controller     374
Adding the Split View Controller     376
Adding App Section Navigation     379
Adding About     382
Creating MainMenuViewController     383
Polishing Menu Images     385
Accessing the Menu in Portrait     387
Implementing the DetailController
Singleton     388
Adding Car Images     397
Adding Cars     400
Adapting the Car Table to iPad     401
Car Detail Controller     404
Car Detail Controller, Take 2: iPad Specific     407
Summary     424
Challenges     425
Chapter 12: Touch Basics     427
Gesture Recognizer Basics     427
Swiping Through Cars     428
Moving Through Cars     429
Calling nextOrPreviousCar:     432
Adding Action Selectors     433
Adding the Swipe Gestures     436
Preventing Recognizers from Working     438
Custom Recognizers     439
Recognizer States     439
Specializing Recognizer Messages     441
iPad Go Home     442
Creating the Return Gesture Recognizer     442
Adding the Gesture Recognizer to the Current Detail     446
Creating and Responding to the Gesture
Recognizer     446
One More Gesture     448
Drag Gesture Recognizer     448
Adding the Taxi View with Drag     450
Summary     450
Challenges     451
Chapter 13: Introducing Blocks     453
Block Basics     453
Declaring Blocks     453
Using Blocks     454
Writing Blocks     455
Variable Scope     460
Copying and Modification     461
Replacing a Protocol     462
Step 1: Changing ViewCarTableViewController     463
Step 2: Updating CarTableViewController     464
Step 3: Modifying CarDetailViewController     465
Step 4: Updating MainMenuViewController     466
Summary     466
Challenges     467
Chapter 14: Instruments and Debugging     469
Instruments     469
Templates and Instruments     471
An Example Using the Time Profiler     472
A Last Word on Instruments     478
The Debugger     479
Debug Gauges: Mini “Instruments”     481
Breakpoints, and Actions, and Code...Oh My!     483
Bug Hunt: Instruments and the Debugger     486
Starting with Zombies     486
Moving On to the Debugger     489
Summary     491
Challenges     491
Chapter 15: Deploying Applications     493
Certificates, Profiles, and Apps     493
Generating a Development Certificate and Profile     495
App ID and Provisioning     498
Prelaunch     506
Bug Reporting     506
Metrics     508
Quality Assurance Testing     509
Marketing     512
Uploading and Launching     513
App Details     515
Uploading to the App Store     521
Some Things to Watch Postlaunch     526
Where to Go Next     526
Websites     527
Developer Groups and Conferences     528
Other Social Media     529
Summary     530
Challenges     530
Index     531


Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020