Beginning iOS 7 Development - Jack Nutting.pdf

(20882 KB) Pobierz
Design and develop your app from concept
and vision to code
iOS 7
Development
Exploring the iOS SDK
Jack Nutting
|
Fredrik Olsson
|
Dave Mark
|
Jeff LaMarche
Beginning
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Contents at a Glance
About the Authors..............................................................................................................
xxi
About the Technical Reviewer .........................................................................................
xxiii
Acknowledgments ............................................................................................................
xxv
Introduction ....................................................................................................................
xxvii
Chapter 1: Welcome to the Jungle.....................................................................................1
Chapter 2: Appeasing the Tiki Gods.................................................................................13
Chapter 3: Handling Basic Interaction .............................................................................45
Chapter 4: More User Interface Fun ................................................................................71
Chapter 5: Autorotation and Autosizing ........................................................................119
Chapter 6: Multiview Applications ................................................................................141
Chapter 7: Tab Bars and Pickers ...................................................................................171
Chapter 8: Introduction to Table Views .........................................................................215
Chapter 9: Navigation Controllers and Table Views.......................................................263
Chapter 10: Collection View ..........................................................................................299
Chapter 11: iPad Considerations ...................................................................................313
Chapter 12: Application Settings and User Defaults......................................................343
Chapter 13: Basic Data Persistence ..............................................................................379
v
vi
Contents at a Glance
Chapter 14: Documents and iCloud ...............................................................................425
Chapter 15: Grand Central Dispatch, Background Processing, and You ........................455
Chapter 16: Drawing with Core Graphics ......................................................................489
Chapter 17: Getting Started with Sprite Kit ...................................................................519
Chapter 18: Taps, Touches, and Gestures ......................................................................563
Chapter 19: Where Am I? Finding Your Way with Core Location and Map Kit ...............595
Chapter 20: Whee! Gyro and Accelerometer! ................................................................613
Chapter 21: The Camera and Photo Library...................................................................641
Chapter 22: Application Localization.............................................................................653
Index .................................................................................................................................675
Introduction
This book is enormous. If you are reading a paper copy, you’re well aware of this, but if you’ve got a
digital copy, you might not understand the size of this thing. I mean, it’s larger than most bibles I’ve
seen. Not that I’m an expert on bibles or anything, but you know: they’re big, fat books. If you asked,
“Is
Beginning iOS 7 Development
bigger than a breadbox?” I’d have to say, “Almost.” And yet, this
book is made of smaller pieces, portioned out so that you should be able to tackle the contents
of any single chapter in a delightful afternoon, learning things about iOS development that you
probably never imagined. When I say “tackle,” I don’t mean just read each chapter. I mean you need
to actually sit down in front of a Mac and work your way through it. Building all the example apps
as you go through each chapter will help imprint all the usage patterns and concepts into your brain
in a way that reading alone could never do. If you work your way through this book, you will come
away with a great understanding of the foundations of iOS app development, and you will be more
than ready to build iOS apps all on your own.
Many years ago, I met the late Torfrid Olsson, a Swedish sculptor from a rural area of northern
Sweden. I expressed to him some envy and admiration about one aspect of his life, and his reply
stuck with me: “Ah, that’s just something you’ve read about in books. You have your own life that is
uniquely yours. What makes you think that it’s missing anything?” My hope is that you don’t let the
knowledge contained in these pages just be something you read in a book. Read it, of course, but
also work through it, understand it, and wrestle it to the ground if you must. Make it
yours.
—Jack Nutting
Stockholm 2014
xxvii
Zgłoś jeśli naruszono regulamin