Download at Boykma.com
开始是一些目录,放在网上,便于自己监督自己。
2010/2/7 p25
Contents at a Glance
About the Author. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
About the Technical Reviewer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Preface to Beginning iPhone 3 Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Preface to Beginning iPhone 2 Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv
chapter 1 Welcome to the Jungle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
chapter 2 Appeasing the Tiki Gods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
chapter 3 Handling Basic Interaction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
chapter 4 More User Interface Fun. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
chapter 5 Autorotation and Autosizing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
chapter 6 Multiview Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
chapter 7 Tab Bars and Pickers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
chapter 8 Introduction to Table Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
chapter 9 Navigation Controllers and Table Views. . . . . . . . . . . . . . . . . . . . . 247
chapter 10 Application Settings and User Defaults. . . . . . . . . . . . . . . . . . . . . 321
chapter 11 Basic Data Persistence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
chapter 12 Drawing with Quartz and OpenGL . . . . . . . . . . . . . . . . . . . . . . . . . 397
chapter 13 Taps, Touches, and Gestures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
chapter 14 Where Am I? Finding Your Way with Core Location. . . . . . . . . . 465
chapter 15 Whee! Accelerometer!. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
chapter 16 iPhone Camera and Photo Library. . . . . . . . . . . . . . . . . . . . . . . . . . 499
chapter 17 Application Localization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
chapter 18 Where to Next? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
Index . 537
What You Need to Know Before You Begin
This book assumes that you already have some programming knowledge. It assumes that
you understand the fundamentals of object-oriented programming such as what objects,
loops, and variables are, for example. It also assumes you are familiar with the Objective-C
programming language. Cocoa Touch, the part of the SDK that you will be using through
most of this book, uses Objective-C 2.0, but don't worry if you're not familiar with the more
recent additions to the Objective-C language. We'll be sure to highlight any of the 2.0 language
features we take advantage of and explain how they work and why we are using
them.
You should also be familiar with the iPhone itself. Just as you would with any platform for
which you wanted to write an application, get to know the iPhone's nuances and quirks, and
get familiar with the iPhone interface and with the way Apple's iPhone programs look and
feel.