Learn Cocoa Touch for iOS

Book description

The Cocoa Touch frameworks and APIs are powerful tools for creating native iOS apps, and they're free with Xcode, Apple's development environment. If you've already gotten your feet wet with Objective-C, and you're ready to learn more about iOS development, then Learn Cocoa Touch for iOS is the book for you.

You'll learn on the job - building cool apps as you read through the book that will teach you what you need to know to use Cocoa Touch and prepare you for creating your own apps.

Learn Cocoa Touch for iOS shows you how to use frameworks like MapKit, Twitter, and MediaPlayer. You'll also learn about hardware APIs so you can get the most out of your accelerometer, camera, and more. You'll even learn about more advanced features like Grand Central Dispatch.

Table of contents

  1. Titlepage
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
  9. Chapter 1: Getting Started
    1. Summary
  10. Chapter 2: Objective-C in a Nutshell
    1. Object-Oriented Programming
    2. Getting and Setting Data
    3. Properties
    4. Writing Your Code for You
    5. Memory Management
    6. Categories
    7. Class Extensions
    8. Protocols
    9. Model-View-Controller Programming: Well-Designed Code
    10. Summary
  11. Chapter 3: Managing On-Screen Content with View Controllers
    1. View Controller Life Cycle
    2. Implementing Application Logic with Controls
    3. Providing Lists of Content with Table Views
    4. Nib Loading In Depth
    5. Parent and Child View Controllers
    6. Passing Data Between View Controllers
    7. Summary
  12. Chapter 4: Saving Content in Your App
    1. Moving Data Around Your App
    2. Persisting Data to a File
    3. Summary
  13. Chapter 5: Handling User Touches
    1. The Responder Chain
    2. Custom Views
    3. UIGestureRecognizer
    4. Scroll Views
    5. Implementing UI Changes
    6. Summary
  14. Chapter 6: Integrating Networking and Web Services
    1. Loading Data from the Network
    2. Asynchronous Operation
    3. Parsing JSON and XML from Web Services
    4. Downloading Files
    5. Sending Data Across the Network
    6. Creating a Twitter Client
    7. Summary
  15. Chapter 7: Writing Modern Code with Blocks
    1. What Are Blocks?
    2. Why Should We Use Blocks?
    3. Using Blocks in Your Code
    4. Updating TwitterExample with Blocks
    5. Summary
  16. Chapter 8: Managing What Happens When
    1. Sending Messages
    2. Scheduling Code with Timers
    3. Run Loops
    4. Multithreaded Code
    5. Grand Central Dispatch
    6. Summary
  17. Chapter 9: User Interface Design
    1. Coloring Interface Elements with UIColor
    2. Fonts and Text Size
    3. Using Images
    4. View Layout
    5. View Animation
    6. Example: Reddit Photo Browser
    7. Summary
  18. Chapter 10: Hardware APIs
    1. Using the Camera
    2. Using the Accelerometer
    3. Using Location Data
    4. Bring Your Own Device
    5. Requiring Devices in Your App
    6. Summary
  19. Chapter 11: Media in Your App: Playing Audio and Video
    1. Playing Audio
    2. Playing Video
    3. Summary
  20. Chapter 12: Localization and Internationalizion
    1. Internationalization
    2. Localization
    3. Summary
  21. Appendix A: Running Code on an iOS Device
    1. The iOS Developer Program
    2. iOS Application Security
    3. Obtaining a Certificate
    4. iOS Application Provisioning
  22. Index

Product information

  • Title: Learn Cocoa Touch for iOS
  • Author(s):
  • Release date: June 2012
  • Publisher(s): Apress
  • ISBN: 9781430242697