You are previewing iPad Application Development For Dummies, 3rd Edition.
O'Reilly logo
iPad Application Development For Dummies, 3rd Edition

Book Description

The fun and easy guide to creating iPad apps, updated for iOS 5!

iPad app development is hot, with more than 140,000 apps available specifically for the device and that number growing every day. The introduction of iOS 5 and iCloud gives developers even more options to create incredible iPad apps. This fast and friendly guide to iPad app development is fully updated for the most recent upgrades and covers everything you need to know, starting with how to download the SDK and become an Apple developer all the way to finishing up your app and submitting it to the App Store.

  • Zeroes in on essential concepts and tools including storyboard, segues, the ARC memory manager, what makes a great iPad app, and more

  • Explains how the iPad offers development opportunities that go beyond the capabilities of the iPhone or iPod touch by focusing exclusively on developing apps for the iPad

  • Looks at how iOS 5 and iCloud brought many changes to the device and a wealth of new features for app developers to utilize in their apps

  • Covers how to become a registered Apple developer, how to download and set up the SDK, and the details of how an iPad app runs

  • Popular developer Neal Goldstein examines what goes into a great user experience and takes you step by step through the actual development of two apps, illustrating everything you need to know

Whether you're looking for a new hobby or you want to build a business in app development, iPad Application Development For Dummies, 3rd Edition is the book you'll want in your developer's toolkit!

Table of Contents

  1. Cover
  2. Table of Contents
  3. Title Page
  4. Introduction
    1. About This Book
    2. Conventions Used in This Book
    3. Foolish Assumptions
    4. How This Book Is Organized
    5. Icons Used in This Book
    6. Where to Go from Here
  5. Part I: Getting Started
    1. Chapter 1: What Makes a Killer iPad App
      1. Figuring Out What Makes a Great iPad Application
      2. Exploiting the Platform
      3. Embracing the iPad’s Limitations
      4. Why Develop iPad Applications?
      5. Developing with Apple’s Expectations in Mind
      6. An Application Ecosystem
      7. Enter the Cloud
      8. Developing an App the Right Way Using the Example App in this Book
      9. What’s Next
    2. Chapter 2: Getting to Know the SDK
      1. Developing Using the SDK
      2. Using Xcode to Develop an App
      3. The Workspace Window
    3. Chapter 3: The Nuts and Bolts of an Xcode Project
      1. Creating Your Project
      2. Exploring Your Project
      3. Setting Your Xcode Preferences
      4. Building and Running Your Application
      5. Running in the Simulator
      6. Adding the Image and Sound Resources and an Application Icon
  6. Part II: Building RoadTrip
    1. Chapter 4: Storyboards and the User Experience
      1. Introducing the Storyboard
      2. Defining What You Want an Application to Do: The RoadTrip Application
      3. Creating the Application Architecture
      4. Using Frameworks
      5. Using Design Patterns
      6. Working with Windows and Views
      7. View Controllers — the Main Storyboard Players
      8. What About the Model?
      9. It’s Not That Neat
      10. Taking a Look at Other Frameworks
      11. Understanding the MVC in the Project
    2. Chapter 5: Creating the RoadTrip User Interface
      1. Creating Your User Interface in the Storyboard
      2. Working within the Utility Area
      3. Understanding iPad Navigation
      4. Adding a New View Controller
      5. Adding the User Interface Objects
      6. Massaging the Template Code
      7. Autosizing the Button
    3. Chapter 6: The Runtime, Managing Memory, and Using Properties
      1. Stepping through the App Life Cycle
      2. Working within the Managed Memory Model Design Pattern
      3. Automatic Reference Counting (ARC)
      4. Observing Low-Memory Warnings
      5. Customizing the Behavior of Framework Classes
      6. Understanding Declared Properties
      7. Hiding Instance Variables
    4. Chapter 7: Working with the Source Editor
      1. Navigating in the Xcode Source Editors
      2. Using the Xcode Source Editor
      3. Accessing Documentation
      4. Finding and Searching in Your Project
      5. You’re Finally Ready to Code!
  7. Part III: Getting Your Feet Wet - Basic Functionality
    1. Chapter 8: It's (Finally) Time to Code
      1. Checking for Network Availability
      2. Sprucing Up the Main View
      3. Understanding Autorotation
      4. Writing Bug-Free Code
    2. Chapter 9: Adding Outlets and Actions to Your RoadTrip Code
      1. Using Custom View Controllers
      2. Understanding Outlets
      3. Adding Outlets
      4. Working with the Target-Action Design Pattern
      5. How Outlets and Actions Work
    3. Chapter 10: Adding Animation and Sound to Your App
      1. Understanding Animation on the iPad
      2. Animating a View
      3. Finally, More Code
      4. Implementing the testDrive Method
      5. Understanding Block Objects
      6. Rotating the Object
      7. Working with Audio on the iPad
      8. Tracking Touches
      9. Animating a Series of Images “In Place”
  8. Part IV: The Model and Application Structure
    1. Chapter 11: The Trip Model
      1. What’s in the Model
      2. Adding the Model Data
      3. Adding the First Two Model Classes
      4. Understanding the Trip Interface
      5. Implementing the Trip Class
      6. Initializing the Destination Class
      7. Creating the Trip Object
      8. More Debugger Stuff
    2. Chapter 12: Implementing the Master View Controller
      1. Setting Up a Custom View Controller
      2. Adding a Background Image and Title
    3. Chapter 13: Working with Split View Controllers and the Master View
      1. The Problem with Using a Navigation Controller in Detail View
      2. Using a Navigation Controller in the Master View
      3. Adding a Gesture Recognizer
      4. The Split View Controller
      5. Adding the Toolbar
      6. A Few More Tweaks to the RTMasterViewController
      7. And (A Little Extra) One More Thing
    4. Chapter 14: Finishing the Basic Application Structure
      1. Extending the Storyboard to Add More Functionality to Your App
      2. Changing the Split View Controller to a Detail View Controller Relationship
  9. Part V: Adding the Application Content
    1. Chapter 15: How's the Weather? Working with Web Views
      1. Setting Up the Weather Controller
      2. The Weather Controller
      3. More Opportunities to Use the Debugger
    2. Chapter 16: Displaying Events Using a Page View Controller
      1. Setting Up the EventsController
      2. Extending the Trip Model
      3. Adding the Events Class
      4. The EventsController and Its PageViewController
      5. And Then There’s the Bar Button Item
    3. Chapter 17: Finding Your Way
      1. Setting Up the Map Controller
      2. Putting MapKit through Its Paces
      3. Changing the Map Type
      4. Adding Annotations
      5. Going to the Current Location
    4. Chapter 18: Geocoding
      1. Understanding Geocoding on the iPad
      2. Reverse Geocoding
    5. Chapter 19: Finding a Location
      1. Setting Up the Find Controller
      2. Implementing the Find Controller
      3. Finding the Location
      4. Making the Map Title the Found Location
    6. Chapter 20: Selecting a Destination
      1. Setting Up the DestinationController
      2. Adding a Modal View
      3. Specifying the Device Orientation
      4. Implementing a Table View
      5. Creating the Table View
      6. Saving the Destination Choice and Selecting a Destination
      7. A Word about Adding Settings
      8. What’s Next?
  10. Part VI: The Part of Tens
    1. Chapter 21: Ten Ways to Extend the RoadTrip App
      1. Add Preferences
      2. Cache Data
      3. Monitor the Current Location’s Distance from the Destination
      4. Post to Facebook and Twitter
      5. Send Postcards from the Road
      6. Add Hotels and Reservations
      7. Create an Itinerary
      8. Make the App Part of an Application Ecosystem
      9. It’s Never Early Enough to Start Speaking a Foreign Language
      10. Some Implementation Enhancements
    2. Chapter 22: Ten Ways to Be a Happy Developer
      1. Keep Things Loosely Coupled
      2. Remember Memory
      3. Don’t Reinvent the Wheel
      4. Understand State Transitions
      5. Do the Right Thing at the Right Time
      6. Avoid Mistakes in Error Handling
      7. Use Storyboards
      8. Remember the User
      9. Keep in Mind that the Software Isn’t Finished Until the Last User Is Dead
      10. Keep It Fun
  11. Cheat Sheet