iOS 7 Development Recipes: A Problem-Solution Approach

Book description

iOS 7 Development Recipes: A Problem-Solution Approach is your code reference and guide to developing solutions on the iPad, iPhone, and other iOS 7 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 you will be presented with cutting-edge solutions that bring forth the best that the iOS 7 SDK has to offer. The recipes include:

  • Working with Auto Layout to build flexible user interfaces that adapt to different screen sizes

  • Building applications that incorporate multimedia

  • Building location-aware apps

  • Understanding best practices for application design and development

  • You'll find this book to be an indispensable reference for all your iOS development.

    What you'll learn

  • How to make your apps truly stand out with multimedia

  • How to integrate social network services such as Twitter and Facebook into your apps

  • How to enhance your game apps with GameCenter

  • How to develop powerful apps with the latest Xcode

  • How to use Table Views and Collection Views in combination with Core Data to build powerful data-driven apps

  • How to build beautiful location-based apps with the new map engine

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

    Product information

    • Title: iOS 7 Development Recipes: A Problem-Solution Approach
    • Author(s):
    • Release date: November 2013
    • Publisher(s): Apress
    • ISBN: 9781430259596