0%

Book Description

Over 100 recipes to build your own fun and exciting iOS applications

  • Learn how to go about developing some simple, yet powerful applications with ease using recipes and example code
  • Teaches how to use the features of iOS 6 to integrate Facebook, Twitter, iCloud, and Airplay into your applications
  • Lots of step-by-step recipe examples with ample screenshots right through to application deployment to the Apple App Store to get you up to speed in no time, with helpful hints along the way

In Detail

The release of iOS 6 comes packed with over 1,500 new APIs and 200 new features. Xcode 4 Cookbook will teach youhow to integrate iCloud storage and how to go about using the Facebook and OpenGraphi APIs, as well as providing you with practical step-by-step recipes covering User Interfaces, data management, multimedia, localisation services and maps, right through to application deployment to the Apple App Store. You will soon be mastering the technology and the skills needed to create some amazing applications.

"Xcode 4 Cookbook" will help you learn how to build some powerful applications using iOS 6 and the various frameworks. You will soon master how to incorporate iCloud, Facebook, and the OpenGraph APIs and apply various image filters and transitions using Core Image integration within your applications. By using the book’s step-by-step approach, you will soon master the technology and the skills needed to create some amazing applications.

"Xcode 4 Cookbook" provides you with the skills and knowledge and practical recipes on how to go about developing useful applications that can be used within the industry.

You will start by learning how to go about downloading and installing the Xcode Development Tools, learn about Interface Builder to create the visual user interfaces, connecting the objects using Outlets and Actions, and learn how to compile/debug your applications.

Finally, you will learn how to capture media with the iOS camera and play back video content using Airplay to wirelessly stream videos to an Apple TV device, using the AV Foundation framework, as well as using the Core Image and Core Graphics frameworks to create amazing image effects using the built-in features.

Table of Contents

  1. Xcode 4 Cookbook
    1. Table of Contents
    2. Xcode 4 Cookbook
    3. Credits
    4. About the Author
    5. Acknowledgement
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Getting and Installing the iOS SDK Development Tools
      1. Introduction
      2. Downloading and installing the iOS SDK
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Using Xcode to create an iOS project
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. main.m
        4. There's more…
          1. Understanding application delegates
          2. Understanding the ViewController class
          3. Understanding ViewController.xib
          4. Understanding HelloWorld-info.plist
        5. See also
      4. Using Interface Builder to create the user interface
        1. How to do it…
        2. How it works…
        3. There's more…
        4. See also
      5. Building the user interface for our application
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      6. Creating outlets to Interface Builder objects
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      7. Creating actions that respond to user actions
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      8. Compiling your project
        1. Getting ready
        2. How to do it…
      9. Using the iOS Simulator to test your applications
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
      10. Configuring and using compiler directives
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      11. Debugging your iOS applications using Xcode
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See Also
      12. Using the Clang Static Analyzer to examine your code
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. See also
    10. 2. User Interfaces – Creating the UI
      1. Introduction
      2. Adding and customizing views
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      3. Using labels to display text
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      4. Obtaining user input through the use of buttons
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      5. Displaying an image within the view
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      6. Displaying and editing text
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      7. Using the iOS device keyboard
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      8. Displaying the progress to the user
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      9. Adding a toolbar to a view
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      10. Fading a view in and out
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      11. Creating a custom table view controller
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      12. Adding a table view to a view controller
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      13. Handling different iOS devices
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
    11. 3. Using Storyboards
      1. Introduction
      2. Configuring storyboards for a project
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Creating a Twitter application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Creating storyboard scenes
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      5. Configuring storyboard scenes
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      6. Applying transitions to storyboards
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      7. Composing a tweet
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
          1. Using the UIActivityViewController class
          2. Using the SLComposeViewController class
        5. See also
      8. Adding photos to a tweet
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
        5. See also
      9. Preparing transition to another view controller
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      10. Presenting storyboard view controllers programmatically
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
    12. 4. Using Xcode Instruments
      1. Introduction
      2. Introducing Xcode Instruments
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Tracing iOS applications
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Running and profiling an iOS project
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      5. Detecting virtual memory faults
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Detecting memory leaks
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. Handling runtime errors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      8. Handling compile-time errors
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Adding and configuring Instruments
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    13. 5. Working with the Location Services and the MapKit Frameworks
      1. Introduction
      2. Adding the CoreLocation and MapKit frameworks
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Building a simple CoreLocation application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Determining the current GPS location
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      5. Adding and working with the MapView control
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Adding overlay regions to maps
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. Adding annotation placeholders to the map
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more…
        5. See also
      8. Reversing geocode address information
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      9. Working with the different map types
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    14. 6. Storing Documents within the Cloud
      1. Introduction
      2. Storing and using documents within iCloud
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Working with the iCloud storage APIs
        1. Getting ready
        2. How to do it...
          1. Using iCloud document storage
          2. Storing key-value data in iCloud
        3. How it works...
        4. See also
      4. Detecting file version conflicts within iCloud
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      5. Building the iCloud application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Requesting entitlements for iCloud storage
        1. Getting ready
        2. How to do it...
        3. How it works...
      7. Configuring iOS devices to use iCloud
        1. Getting ready
        2. How to do it...
        3. How it works...
    15. 7. Working with Different Multimedia Resources
      1. Introduction
      2. Selecting images and video from the camera roll
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Capturing media with the camera
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Playing video with Apple TV integration
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      5. Playing music using the MediaPlayer framework
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Using the iOS device's microphone to record
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. Animating views
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Drawing customized text
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Drawing lines and curves
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      10. Drawing and filling shapes
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      11. Applying color effects using Core Image
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      12. Applying transition effects
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    16. 8. Working with the CoreData and GameKit Frameworks
      1. Introduction
      2. Adding the GameKit and MessageUI frameworks
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Building the Core Data data model
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Creating the Core Data model files
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      5. Adding and configuring the Storyboard
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      6. Creating the Books Library user interface
        1. Getting ready…
        2. How to do it...
        3. How it works...
        4. See also
      7. Displaying data within the Table View
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Inserting data within our Core Data data model
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Delete an item from the Table View using Core Data
        1. Getting ready
        2. How to do it...
        3. How it works...
      10. Reordering rows within a Table View
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      11. Filtering and searching for data within a Table View
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      12. Working with the different keyboard styles
        1. Getting Ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      13. Transferring data to another device using bluetooth
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      14. Implementing e-mail messaging
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
    17. 9. Creating a Social Networking App with the Facebook iOS SDK
      1. Introduction
      2. Downloading the Facebook iOS SDK
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Registering your iOS applications with Facebook
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Building a simple social networking application
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      5. Adding the Facebook SDK and dependencies to your project
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Implementing the Single Sign On (SSO) feature
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      7. Implementing the View Controller class
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Requesting additional Facebook permissions
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      9. Using the Graph API to read JSON data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      10. Integrating with the Facebook social channels
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      11. Handling Facebook errors within your application
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
    18. 10. Packaging and Deploying Your Application
      1. Introduction
      2. Setting up your iOS development team
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      3. Creating the iOS development certificate
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      4. Obtaining the development certificate from Apple
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. See also
      5. Registering your iOS devices for testing
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      6. Creating your application App IDs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      7. Creating the development provisioning profiles
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Using the provisioning profile to install the app on an iOS device
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      9. Preparing an application for submission to the App Store using iTunes Connect
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      10. Archiving and submitting apps using Xcode 4
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
    19. A. Exploring the MultiTouch Interface
      1. Introduction
      2. Sensing the movement and device orientation
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
      3. Using the shake gesture with the touch interface
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      4. Detecting device touches with the touch interface
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. See also
      5. Sensing movement with the accelerometer input
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more…
        5. Understanding the core motion framework
        6. See also
      6. Working with the iOS device gyroscope
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. See also
    20. Index