Welcome to the new state of the art development for iOS, with the radically overhauled Xcode 4 toolchain and iOS 5 SDK. With this book you'll accelerate your development for iPhone, iPad and iPod Touch. You will learn the new tools like Storyboards, practice on new APIs like the Twitter framework and use the latest features of the Objective-C 2.0 programming language.
Since the iPhone's launch in 2008, the iOS platform has added two new device families, thousands of new APIs, new tools and programming practices, and hundreds of thousands of new apps. iOS SDK Development is the second edition of the bestselling iPhone SDK Development, completely rewritten from the ground up to cover iOS 5's new features.
You'll get hands-on experience working with Objective-C and Xcode 4 as you work through this tutorial-style book with two experienced iOS developers by your side. Along the way, you'll learn the fundamentals of maintainable, performant iOS programming, including:
Making apps that are multi-core-capable, testable, internationalizable, and that use less memory.
Understanding the underlying concepts of touch event handling, drawing and animation, multi-core concurrency, and memory management with iOS 5's new Automatic Reference Counting.
Creating and using unit tests to ensure your app continues to work as intended even as the codebase evolves.
Working through Apple's App Store processes, including preparing apps for submission, avoiding rejections, and understanding crash reports from end users.
Whether you're a first-time iOS developer, or you're looking to get up to speed with all the changes to Apple's tools and frameworks, iPhone SDK Development is the solid grounding you need to master this popular platform.
What You Need:
You need a Mac running Mac OS X Lion (10.7) and Xcode 4.
| Acknowledgments | p. ix |
| Introduction | p. xiii |
| Tweetings and Welcome to iOS 6 | p. 1 |
| Tooling Up | p. 1 |
| Our First Project | p. 2 |
| Building Our User Interface | p. 8 |
| Coding the App | p. 14 |
| Tweet, Sweet Success | p. 24 |
| Programming for iOS | p. 27 |
| Introducing Objective-C | p. 27 |
| Methods and Messaging | p. 28 |
| Memory Management | p. 30 |
| Managing an Object's Properties | p. 31 |
| Auto Layout and the iPhone 5 | p. 36 |
| The iOS Programming Stack | p. 44 |
| Building Views with UIKit | p. 45 |
| Using the Foundation Classes | p. 47 |
| Internationalization | p. 50 |
| Wrap-Up | p. 53 |
| Asynchronicity and Concurrency | p. 57 |
| Encapsulating Concurrent Code with Blocks | p. 57 |
| Grand Central Dispatch | p. 61 |
| Concurrency and UIKit | p. 62 |
| Sorting with Blocks | p. 70 |
| Wrap-Up | p. 75 |
| View Controllers | p. 77 |
| Practicing MVC | p. 78 |
| Working with a View's Life Cycle | p. 85 |
| Building a Detailed Recipe View | p. 88 |
| Wrap-Up | p. 93 |
| Table Views | p. 95 |
| The UITableView | p. 95 |
| Displaying a List of Recipes | p. 96 |
| Editing a Table | p. 102 |
| Working with Cell Styles | p. 109 |
| Recipe Details | p. 111 |
| Wrap-Up | p. 115 |
| Storyboards and Container Controllers | p. 119 |
| Laying Out Storyboards | p. 119 |
| Using Container Controllers | p. 128 |
| Moving Around with Navigation Controllers | p. 129 |
| Managing View Controllers in Navigation Controllers | p. 131 |
| Transferring App Control and Data | p. 134 |
| Returning App Control and Data | p. 149 |
| Wrap-Up | p. 152 |
| Documents and iCloud | p. 155 |
| Making Recipes Persist | p. 155 |
| Telling the Recipe Document About Edits | p. 163 |
| Sharing Recipes | p. 169 |
| Opening Shared Recipe Documents | p. 178 |
| Storing Documents in iCloud | p. 182 |
| Wrap-Up | p. 187 |
| Drawing and Animating | p. 189 |
| Drawing Images | p. 190 |
| Drawing Paths | p. 194 |
| Using Shadows | p. 197 |
| Rotating and Animating Images | p. 199 |
| Drawing Shadows | p. 202 |
| Wrap-Up | p. 205 |
| Testing and Fixing Apps | p. 207 |
| Unit Testing | p. 207 |
| Debugging Our App | p. 217 |
| User Interface Testing | p. 219 |
| Testing Performance with Instruments | p. 228 |
| Wrap-Up | p. 230 |
| The App Store and Beyond | p. 233 |
| Protecting Our Code with Source Control | p. 233 |
| Running on the Device | p. 239 |
| Submitting Apps for Review | p. 249 |
| After We Ship | p. 254 |
| Onward! | p. 257 |
| Wait! I Forgot (or Never learned) C! | p. 259 |
| C: The Basics | p. 259 |
| Pointers | p. 261 |
| Dynamic Memory Management | p. 263 |
| Bibliography | p. 267 |
| Index | p. 269 |
| Table of Contents provided by Ingram. All Rights Reserved. |
ISBN: 9781934356944
ISBN-10: 1934356948
Series: OREILLY AND ASSOCIATE
Audience:
General
Format:
Paperback
Language:
English
Number Of Pages: 300
Published: 29th November 2012
Dimensions (cm): 22.5 x 19.3
x 1.906
Weight (kg): 0.666