0%

Book Description

iOS 6 Recipes: A Problem-Solution Approach is your code reference and guide to developing solutions on iPad, iPhone, and other iOS 6 SDK 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 6 SDK has to offer. The recipes include:

  • Working with Autolayout to build flexible user interfaces that adapts to different screen sizes

  • Building applications that incorporate multimedia

  • Building location-aware apps

  • Understanding best practices for application design and development

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

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
  9. Chapter 1: Application Recipes
    1. Recipe 1-1: Setting Up a Single-View Application
    2. Recipe 1-2: Linking a Framework
    3. Recipe 1-3: Adding a User Interface Control View
    4. Recipe 1-4: Creating an Outlet
    5. Recipe 1-5: Creating an Action
    6. Recipe 1-6: Creating a Class
    7. Recipe 1-7: Adding an Info.plist Property
    8. Recipe 1-8: Adding a Resource File
    9. Recipe 1-9: Using Storyboards
    10. Recipe 1-10: Handling Errors
    11. Recipe 1-11: Handling Exceptions
    12. Recipe 1-12: Adding a Lite Version
    13. Recipe 1-13: Adding Launch Images
    14. Summary
  10. Chapter 2: Layout Recipes
    1. Recipe 2-1: Using Autolayout
    2. Recipe 2-2: Programming Autolayout
    3. Recipe 2-3: Debugging Autolayout
    4. Summary
  11. Chapter 3: Table and Collection View Recipes
    1. Recipe 3-1: Creating an Ungrouped Table
    2. Recipe 3-2: Editing a UITableView
    3. Recipe 3-3: Reordering a UITableView
    4. Recipe 3-4: Creating a Grouped UITableView
    5. Recipe 3-5: Registering a Custom Cell Class
    6. Recipe 3-6: Creating a Flag Picker Collection View
    7. Summary
  12. Chapter 4: Location Recipes
    1. About Core Location
    2. Recipe 4-1: Getting Basic Location Information
    3. Recipe 4-2: Significant Location Changes
    4. Recipe 4-3: Tracking Magnetic Bearing
    5. Recipe 4-4: Tracking True Bearing
    6. Recipe 4-5: Region Monitoring
    7. Recipe 4-6: Implementing Geocoding
    8. Summary
  13. Chapter 5: Motion Recipes
    1. Recipe 5-1: Recognizing Shake Events
    2. Recipe 5-2: Accessing Raw Core Motion Data
    3. Recipe 5-3: Accessing Device Motion Data
    4. Recipe 5-4: Moving a Label with Gravity
    5. Summary
  14. Chapter 6: Map Recipes
    1. Recipe 6-1: Showing a Map with the Current Location
    2. Recipe 6-2: Marking Locations with Pins
    3. Recipe 6-3: Creating Custom Annotations
    4. Recipe 6-4: Dragging a Pin
    5. Recipe 6-5: Adding Overlays to a Map
    6. Recipe 6-6: Grouping Annotations Dynamically
    7. Recipe 6-7: Starting Maps from Your App
    8. Recipe 6-8: Registering a Routing App
    9. Summary
  15. Chapter 7: Social Network Recipes
    1. Recipe 7-1: Sharing Content with the Activity View
    2. Recipe 7-2: Sharing Content Using a Compose View
    3. Recipe 7-3: Sharing Content Using SLRequest
    4. Recipe 7-4: Retrieving Tweets
    5. Summary
  16. Chapter 8: Camera Recipes
    1. Recipe 8-1: Taking Pictures
    2. Recipe 8-2: Recording Video
    3. Recipe 8-3: Editing Videos
    4. Recipe 8-4: Using Custom Camera Overlays
    5. Recipe 8-5: Displaying Camera Preview with AVCaptureSession
    6. Recipe 8-6: Capturing Still Images with AVCaptureSession
    7. Recipe 8-7: Capturing Video with AVCaptureSession
    8. Recipe 8-8: Capturing Video Frames
    9. Summary
  17. Chapter 9: Multimedia Recipes
    1. Recipe 9-1: Playing Audio
    2. Recipe 9-2: Recording Audio
    3. Recipe 9-3: Accessing the Music Library
    4. Recipe 9-4: Playing Background Audio
    5. Summary
  18. Chapter 10: Image Recipes
    1. Recipe 10-1: Drawing Simple Shapes
    2. Recipe 10-2: Programming Screenshots
    3. Recipe 10-3: Using Image Views
    4. Recipe 10-4: Scaling Images
    5. Recipe 10-5: Manipulating Images with Filters
    6. Recipe 10-6: Detecting Features
    7. Summary
  19. Chapter 11: User Data Recipes
    1. Recipe 11-1: Working with NSCalendar and NSDate
    2. Recipe 11-2: Fetching Calendar Events
    3. Recipe 11-3: Displaying Events in a Table View
    4. Recipe 11-4: Viewing, Editing, and Deleting Events
    5. Recipe 11-5: Creating Calendar Events
    6. Recipe 11-6: Creating Reminders
    7. Recipe 11-7: Accessing the Address Book
    8. Recipe 11-8: Setting Contact Information
    9. Summary
  20. Chapter 12: Data Storage Recipes
    1. Recipe 12-1: Persisting Data With NSUserDefaults
    2. Recipe 12-2: Persisting Data Using Files
    3. Recipe 12-3: Using Core Data
    4. Persisting Data on iCloud
    5. Recipe 12-4: Storing Key-Value Data in iCloud
    6. Recipe 12-5: Storing UIDocuments in iCloud
    7. Summary
  21. Chapter 13: Data Transmission Recipes
    1. Recipe 13-1: Composing Text Messages
    2. Recipe 13-2: Composing Email
    3. Recipe 13-3: Printing an Image
    4. Recipe 13-4: Printing Plain Text
    5. Recipe 13-5: Printing a View
    6. Recipe 13-6: Formatted Printing with Page Renderers
    7. Summary
  22. Chapter 14: Game Kit Recipes
    1. Recipe 14-1: Making Your App Game Center Aware
    2. Recipe 14-2: Implementing Leaderboards
    3. Recipe 14-3: Implementing Achievements
    4. Recipe 14-4: Creating a Simple Turn-Based Multiplayer Game
    5. Summary
  23. Index