O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

iOS 5 Essentials

Book Description

Harness iOS 5’s new powerful features to create stunning applications

  • Integrate iCloud, Twitter and AirPlay into your applications.
  • Lots of step-by-step examples, images and diagrams to get you up to speed in no time with helpful hints along the way.
  • Each chapter explains iOS 5’s new features in-depth, whilst providing you with enough practical examples to help incorporate these features in your apps
  • From the author of Xcode 4 iOS development.

In Detail

Building on the phenomenal success of its predecessor iOS 5 includes over 200 new user features as well as an updated SDK containing over 1,500 new APIs. iOS 5 looks set to reinforce the iPhone’s dominance in the smartphone market.

iOS 5 Essentials will help you learn how to build simple, yet powerful iOS 5 applications incorporating iCloud Storage, Twitter, Core Image and Newsstand integration.

You will start by learning about what’s new in iOS 5. You'll look at the iCloud Storage APIs, Automatic Reference Counting, Twitter and AirPlay integration, how to use the various Core Image filters using the Cocoa framework, and the new features of the iOS 5 SDK. After this, you'll jump straight in and create applications using Xcode and Interface Builder using the new storyboard layout. We then finish up by learning how to make your applications run smoothly using the Xcode instruments.

Table of Contents

  1. iOS 5 Essentials
  2. Credits
  3. Foreword
  4. About the Author
  5. Acknowledgements
  6. About the Reviewers
  7. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
        2. Why Subscribe?
        3. Free Access for Packt account holders
        4. Instant Updates on New Packt Books
  8. Preface
    1. What this book covers
    2. What you need for this book
    3. Who this book is for
    4. Conventions
    5. Customer support
      1. Downloading the example code
      2. Errata
      3. Piracy
      4. Questions
  9. 1. What's New in iOS5
    1. What's new in iOS 5
      1. Reminders
      2. Notification Center
      3. Newsstand
    2. Getting and installing the iOS 5 SDK
    3. Creating the MyMagazineArticle application
      1. Adding the Newsstand Kit framework to our project
        1. Adding properties to our application
    4. Creating the MyEmailApp application
      1. Adding the MessageUI framework to our project
      2. Building TheMyEmailApp user interface
        1. Auto-populating fields
    5. Building and running the MyEmailApp application
      1. iMessage
      2. iPhone Camera
      3. PC Free
      4. Wi-Fi sync
      5. Multitasking gestures
      6. Removing the Xcode developer tools
    6. Summary
  10. 2. Using iCloud and the Storage APIs
    1. Comparing Apple iCloud and Google Docs
    2. Storing and using documents in iCloud
      1. Storing key-value data in iCloud
      2. Requesting entitlements for iCloud storage
      3. iCloud backup
        1. Creating the iCloudExample application
      4. Moving a document to iCloud storage
      5. iCloud storage APIs
      6. Searching for documents in iCloud
      7. Working with documents in iCloud
        1. The file coordinator
        2. The file presenter
      8. Handling file-version conflicts
      9. Using iCloud storage responsibly
    3. Summary
  11. 3. Debugging with OpenGL ES
    1. Understanding the new workflow feature within Xcode
      1. Creating a simple project to debug an OpenGL ES application
      2. Detecting OpenGL ES state information and objects
        1. View textures
        2. Shaders
    2. Error handling in OpenGL ES
      1. Detecting errors by setting up breakpoints
      2. Setting up breakpoints in your code
      3. Setting conditional OpenGL ES entry point breakpoints
      4. Breaking on frame boundaries
    3. Summary
  12. 4. Using Storyboards
    1. Understanding Storyboards
      1. Transitions
      2. How to go about creating Storyboard files
      3. Creating a simple Storyboard (Twitter) application
      4. Creating scenes
      5. Configuring scenes
      6. Building a Twitter application
      7. Composing a Tweet message
      8. Adding photos to a Tweet
      9. Preparing to transition to a new view-controller
      10. Presenting storyboard view-controllers programmatically
    2. Summary
  13. 5. Using AirPlay and Core Image
    1. Understanding the AirPlay framework
      1. Creating a simple AirPlay application
      2. Using AirPlay to present application content to Apple TV
      3. Understanding the Core Image framework
      4. Creating a simple Core Image application
      5. Learn how to apply image filter effects using the CIImage class
        1. Color effects
        2. Transitions
    2. Summary
  14. 6. Xcode Tools - Improvements
    1. LLVM compiler
      1. Automatic Reference Counting (ARC)
        1. Strong references
        2. Weak references
        3. ARC qualifiers regular variables
        4. Variable qualifiers
      2. Interface builder
        1. Support for creating storyboard files for iOS applications
      3. Location simulator
        1. Creating a simple geographical application
      4. OpenGL ES debugging
      5. OpenGL ES frame capture
      6. Application data management
      7. UI automation enhancements
        1. Preparing your application
        2. Creating a simple UIAutomation application
      8. Writing the UIAutomation test script
      9. Running your tests
    2. Summary
  15. 7. Making your Applications Run Smoothly using Instruments
    1. Introduction to Instruments
      1. Tracing iOS applications
      2. Loading the MapKitExample project
        1. Running and profiling the project
      3. VM faults
      4. Memory leaks
      5. Run-time errors
      6. Compile-time errors
    2. Adding and configuring Instruments
      1. Using the Instruments library
      2. Locating an Instrument within the Library
      3. Adding and removing instruments
      4. Configuring an instrument
      5. Other components of the Instruments family explained
    3. What's new in Instruments
      1. Time Profiler with CPU strategy
      2. System Trace for iOS
      3. Network Connections
      4. Network activity
    4. Summary