iOS 5 Recipes: A Problem-Solution Approach

Book description

iOS 5 Recipes: A Problem-Solution Approach is your guide to developing solutions on iPad, iPhone, and other iOS 5 devices and platforms. This book provides in-depth code samples and discussions for scenarios that developers face every day. You'll find numerous examples of real-world cases that will enable you to build fully functional applications quickly and efficiently.

The recipes included in this book are wide in scope, and have been geared toward the professional developer. You'll find clear and concise code samples accompanying each recipe, and will be presented with cutting-edge solutions that bring forth the best that the iOS 5 SDK has to offer. The recipes include:

  • Working with Interface Builder in the latest version of Xcode

  • Building applications that incorporate animation and multimedia

  • Building location-aware apps

  • Understanding best practices for application design and development

You'll find iOS 5 Recipes: A Problem-Solution Approach to be an indispensable reference for all of your iOS development.

What you'll learn

  • How to make your apps truly stand out with brilliant animations and multimedia

  • How to enhance your game apps with GameCenter

  • How to develop powerful apps with the latest Xcode

  • How to extend your apps with TableView, UIView, and core graphics

Who this book is for

This book is intended for developers familiar with the Objective-C programming language and with an interest in developing apps for the iPhone and iPad. While a basic knowledge of Objective-C is expected, developers at all levels of app development will benefit from this book.

Table of contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Authors
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
    1. What to Expect from This Book
    2. How This Book Is Organized
    3. Source Code and Errata
    4. Contact Information
  9. Chapter 1: Xcode 4 Tips and Tricks
    1. Xcode 4: An Introduction
    2. Summary
  10. Chapter 2: Introduction to Interface Builder
    1. Interface Builder Walkthrough
    2. Our Forces Combined…
    3. Touches Too
    4. Adjusting Tint
    5. Rapid App Development with Storyboarding
    6. Summary
  11. Chapter 3: Application Design Elements
    1. Cocoa Touch Controls
    2. Data Views
    3. Gesture Recognizers
    4. View Controllers
    5. Temporary User Interface Elements
    6. Summary
  12. Chapter 4: Location Recipes
    1. Supported Devices
    2. Requiring Location Services
    3. How Do I Know Where I Am?
    4. Recipe 4–1: Getting Device Location Information
    5. Recipe 4–2: Significant Location Changes
    6. Recipe 4–3: Determining Magnetic Bearing
    7. Recipe 4–4: Specifying True Bearing
    8. Recipe 4–5: Region Monitoring
    9. Recipe 4–6: Reverse and Forward Geocoding
    10. Getting Coordinates from Place Names
    11. Summary
  13. Chapter 5: Map Kit Recipes
    1. Recipe 5–1: Showing a Map with the Device's Location
    2. Recipe 5–2: Marking Locations with Pins
    3. Recipe 5–3: Creating Custom Annotations
    4. Recipe 5–4: Adding Overlays to a Map
    5. Recipe 5–5: Grouping Annotations by Location
    6. Summary
  14. Chapter 6: Camera Recipes
    1. Recipe 6–1: Taking Pictures
    2. Recipe 6–2: Recording Video
    3. Recipe 6–3: Editing Videos
    4. Recipe 6–4: Custom Camera Overlays
    5. Recipe 6–5: AV Framework and Capture Sessions
    6. Recipe 6–6: Programmatically Recording Video
    7. Recipe 6–7: Capturing Video Frames
    8. Summary
  15. Chapter 7: Multimedia Recipes
    1. Recipe 7–1: Playing Audio
    2. Recipe 7–2: Recording Audio
    3. Recipe 7–3: Accessing the iPod Library
    4. Recipe 7–4: Background Playing and Now Playing Info
    5. Summary
  16. Chapter 8: User Data Recipes
    1. Recipe 8–1: Working with NSCalendar and NSDate
    2. Recipe 8–2: Fetching Events
    3. Recipe 8–3: Displaying Events in a UITableView
    4. Recipe 8–4: Viewing, Editing, and Deleting Events
    5. Recipe 8–5: Creating Simple Events
    6. Recipe 8–6: Recurring Events
    7. Recipe 8–7: Basic Address Book Access
    8. Recipe 8–8: Setting Contact Information
    9. Recipe 8–9: Viewing Contacts
    10. Summary
  17. Chapter 9: UITableView Recipes
    1. Recipe 9–1: Creating an Ungrouped Table
    2. Recipe 9–2: Editing a UITableView
    3. Recipe 9–3: Re-ordering a UITableView
    4. Recipe 9–4: Creating a Grouped UITableView
    5. Summary
  18. Chapter 10: Data Storage Recipes
    1. Recipe 10–1: Using NSUserDefaults
    2. Recipe 10–2: Managing Files
    3. Core Data
    4. Recipe 10–3: Persistence with iCloud
    5. Recipe 10–4: Storing Key-Value Data in iCloud
    6. Summary
  19. Chapter 11: Core Data Recipes
    1. What Is Core Data?
    2. Recipe 11–1: Creating a Data Model
    3. Recipe 11–2: Working with NSManagedObjects
    4. Recipe 11–3: Subclassing NSManagedObject
    5. Recipe 11–4: Filtering Your Fetch Requests
    6. Recipe 11–5: Versioning
    7. An Irritating Error
    8. Summary
  20. Chapter 12: Core Motion Recipes
    1. Recipe 12–1: Registering Shake Events
    2. Recipe 12–2: Accessing Raw Core Motion Data
    3. Recipe 12–3: Moving a UILabel with the Accelerometer
    4. Summary
  21. Chapter 13: Data Transmission Recipes
    1. Recipe 13–1: Composing Text Messages
    2. Recipe 13–3: Printing an Image
    3. Recipe 13–4: Printing Plain Text
    4. Recipe 13–5: Printing a View
    5. Recipe 13–6: Formatted Printing with Page Renderers
    6. Summary
  22. Chapter 14: Twitter Recipes
    1. Recipe 14–1: Composing Simple Tweets
    2. Recipe 14–2: Creating Simple TWRequests
    3. Sending Tweets via TWRequest
    4. Recipe 14–3: Retrieving Tweets
    5. Recipe 14–4: Filtering Tweets
    6. Summary
  23. Chapter 15: Image Recipes
    1. Recipe 15–1: Drawing Simple Shapes
    2. Recipe 15–2: Using UIImageViews
    3. Recipe 15–3: Scaling Images
    4. Recipe 15–4: Manipulating Images with Filters
    5. Recipe 15–5: Detecting Features
    6. Summary
  24. Chapter 16: Game Kit Recipes
    1. Recipe 16–1: Starting with Game Center
    2. Recipe 16–2: Leaderboards
    3. Recipe 16–3: Achievements
    4. Recipe 16–4: Multiplayer
    5. Summary
  25. Index

Product information

  • Title: iOS 5 Recipes: A Problem-Solution Approach
  • Author(s):
  • Release date: February 2012
  • Publisher(s): Apress
  • ISBN: 9781430240051