iOS SDK Development

iOS SDK Development

Paperback

$29.23 $35.00 Save 16% Current price is $29.23, Original price is $35. You Save 16%. View All Available Formats & Editions

Temporarily Out of Stock Online

Eligible for FREE SHIPPING

Overview

iOS SDK Development by Chris Adamson, Bill Dudney

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.

Product Details

ISBN-13: 9781934356944
Publisher: Pragmatic Programmers, LLC, The
Publication date: 11/22/2012
Pages: 300
Product dimensions: 7.50(w) x 8.90(h) x 0.90(d)

About the Author

Chris Adamson is a writer, editor, and independent developer specializing in media software development for iOS. He maintains a corporate identity as Subsequently & Furthermore, Inc. and writes the [Time code ]; blog on media software development, as well as tweeting as @invalidname.

Bill Dudney is a husband, father, coder, and teacher. He has been doing Objective-C since 1989 when he first encountered a NeXT cube, and has several apps on the store through his company, Gala Factory Software LLC. When he is not writing books or teaching people about iOS, he likes to ski and hike in the high country of Summit County, Colorado. You can connect with him on Twitter at @bdudney.

Table of Contents

Acknowledgments ix

Introduction xiii

1 Tweetings and Welcome to iOS 6 1

1.1 Tooling Up 1

1.2 Our First Project 2

1.3 Building Our User Interface 8

1.4 Coding the App 14

1.5 Tweet, Sweet Success 24

2 Programming for iOS 27

2.1 Introducing Objective-C 27

2.2 Methods and Messaging 28

2.3 Memory Management 30

2.4 Managing an Object's Properties 31

2.5 Auto Layout and the iPhone 5 36

2.6 The iOS Programming Stack 44

2.7 Building Views with UIKit 45

2.8 Using the Foundation Classes 47

2.9 Internationalization 50

2.10 Wrap-Up 53

3 Asynchronicity and Concurrency 57

3.1 Encapsulating Concurrent Code with Blocks 57

3.2 Grand Central Dispatch 61

3.3 Concurrency and UIKit 62

3.4 Sorting with Blocks 70

3.5 Wrap-Up 75

4 View Controllers 77

4.1 Practicing MVC 78

4.2 Working with a View's Life Cycle 85

4.3 Building a Detailed Recipe View 88

4.4 Wrap-Up 93

5 Table Views 95

5.1 The UITableView 95

5.2 Displaying a List of Recipes 96

5.3 Editing a Table 102

5.4 Working with Cell Styles 109

5.5 Recipe Details 111

5.6 Wrap-Up 115

6 Storyboards and Container Controllers 119

6.1 Laying Out Storyboards 119

6.2 Using Container Controllers 128

6.3 Moving Around with Navigation Controllers 129

6.4 Managing View Controllers in Navigation Controllers 131

6.5 Transferring App Control and Data 134

6.6 Returning App Control and Data 149

6.7 Wrap-Up 152

7 Documents and iCloud 155

7.1 Making Recipes Persist 155

7.2 Telling the Recipe Document About Edits 163

7.3 Sharing Recipes 169

7.4 Opening Shared Recipe Documents 178

7.5 Storing Documents in iCloud 182

7.6 Wrap-Up 187

8 Drawing and Animating 189

8.1 Drawing Images 190

8.2 Drawing Paths 194

8.3 Using Shadows 197

8.4 Rotating and Animating Images 199

8.5 Drawing Shadows 202

8.6 Wrap-Up 205

9 Testing and Fixing Apps 207

9.1 Unit Testing 207

9.2 Debugging Our App 217

9.3 User Interface Testing 219

9.4 Testing Performance with Instruments 228

9.5 Wrap-Up 230

10 The App Store and Beyond 233

10.1 Protecting Our Code with Source Control 233

10.2 Running on the Device 239

10.3 Submitting Apps for Review 249

10.4 After We Ship 254

10.5 Onward! 257

A1 Wait! I Forgot (or Never learned) C! 259

A1.1 C: The Basics 259

A1.2 Pointers 261

A1.3 Dynamic Memory Management 263

Bibliography 267

Index 269

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews