SPECIAL OFFERS
Keep up with new releases and promotions. Sign up to hear from us.
Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
“Not many books have a single project that lives and evolves through the entire narrative. The reason not many books do this is because it is difficult to do well. Important toolkit features get shoehorned in weird places because the author didn’t do enough up-front design time. This book, though, takes you from design, to a prototype, to the Real Deal. And then it goes further.”
—Mark Dalrymple, cofounder of CocoaHeads, the international Mac and iPhone programmer community; author of Advanced Mac OS X Programming: The Big Nerd Ranch Guide
Learning iPad Programming, Second Edition, will help you master all facets of iPad programming with Apple’s newest tools. Its in-depth, hands-on coverage fully addresses the entire development process, from installing the iOS SDK through coding, debugging, submitting apps for Apple’s review, and deployment.
Extensively updated for Apple’s newest iOS features and Xcode 4.x updates, this book teaches iPad programming through a series of exercises centered on building PhotoWheel, a powerful personal photo library app. As you build PhotoWheel, you’ll gain experience and real-world insights that will help you succeed with any iPad development project.
Leading iOS developers Kirby Turner and Tom Harrington introduce the essentials of iOS development, focusing on features that are specific to iPad. You’ll find expert coverage of key topics many iOS development books ignore, from app design to Core Data. You’ll also learn to make the most of crucial iOS and Xcode features, such as Storyboarding and Automatic Reference Counting (ARC), and extend your app with web services and the latest iCloud synching techniques.
Learn how to
Download the free version of PhotoWheel from the App Store today! Import, manage, and share your photos as you learn how to build this powerful app.
Foreword xxv
Preface xxix
Acknowledgments xlv
About the Authors xlvii
Part I: Getting Started 1
Chapter 1: Your First App 3
Creating the Hello World Project 3
Getting Text on the Screen 11
Say Hello 13
Summary 19
Chapter 2: Getting Started with Xcode 21
The IDE 21
Workspace Window 22
Preferences 29
Developer Documentation 37
Editors 38
Project Settings 40
Schemes 42
Organizer 43
Other Xcode Tools 44
Summary 45
Chapter 3: Getting Started with Interface Builder 47
Interface Builder 47
How Does IB Work? 48
Getting Hands-On Practice with IB 49
Connecting Your NIB to Your Code 61
Storyboards 70
Summary 70
Chapter 4: Getting Started with Objective-C 71
What Is Objective-C? 71
Hands-On Practice with Objective-C 72
Memory Management 93
Summary 95
Chapter 5: Getting Started with Cocoa 97
The Cocoa Stack 97
Foundation 99
UIKit 112
Common Design Patterns in Cocoa 121
Summary 123
Chapter 6: Provisioning Your iPad 125
About the iOS Provisioning Portal 125
The Provisioning Process: A Brief Overview 127
Setting Up Your Development Machine 130
Setting Up Your Device 138
Using the iOS Provisioning Portal 141
Summary 149
Chapter 7: App Design 151
Defining Your App 151
A Sample App Charter 156
UI Design Considerations 158
Mockups 164
Prototyping 171
Summary 173
Part II: Building PhotoWheel 175
Chapter 8: Creating a Master-Detail App 177
Building a Prototype App 177
A Closer Look 183
A Tour of UISplitViewController 189
Summary 195
Exercises 196
Chapter 9: Using Table Views 197
First Things First 197
A Closer Look 201
Working with a Table View 203
Summary 233
Exercises 234
Chapter 10: Using Collection and Custom V