iOS 6 Recipes A Problem-Solution Approach.pdf

(24926 KB) Pobierz
Core code concepts and techniques for
iPhone and iPad app developers
iOS 6 Recipes
A Problem-Solution Approach
Hans-Eric Grönlund | Colin Francis | Shawn Grimes
987430014.024.png 987430014.025.png 987430014.026.png 987430014.027.png 987430014.001.png 987430014.002.png 987430014.003.png 987430014.004.png 987430014.005.png 987430014.006.png 987430014.007.png 987430014.008.png 987430014.009.png 987430014.010.png 987430014.011.png 987430014.012.png 987430014.013.png 987430014.014.png 987430014.015.png 987430014.016.png 987430014.017.png 987430014.018.png
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.
987430014.019.png 987430014.020.png
Contents at a Glance
About the Authors������������������������������������������������������������������������������������������������������������� xix
About the Technical Reviewer ������������������������������������������������������������������������������������������ xxi
Acknowledgments ���������������������������������������������������������������������������������������������������������� xxiii
Introduction ��������������������������������������������������������������������������������������������������������������������� xxv
Chapter 1: Application Recipes
���������������������������������������������������������������������������������������� 1
Chapter 2: Layout Recipes
���������������������������������������������������������������������������������������������� 79
Chapter 3: Table and Collection View Recipes
�������������������������������������������������������������� 113
Chapter 4: Location Recipes
����������������������������������������������������������������������������������������� 175
Chapter 5: Motion Recipes
������������������������������������������������������������������������������������������� 217
Chapter 6: Map Recipes
������������������������������������������������������������������������������������������������ 243
Chapter 7: Social Network Recipes
������������������������������������������������������������������������������ 303
Chapter 8: Camera Recipes
������������������������������������������������������������������������������������������ 343
Chapter 9: Multimedia Recipes
������������������������������������������������������������������������������������ 383
Chapter 10: Image Recipes
������������������������������������������������������������������������������������������� 417
Chapter 11: User Data Recipes
������������������������������������������������������������������������������������� 457
v
987430014.021.png
vi
Contents at a Glance
Chapter 12: Data Storage Recipes
�������������������������������������������������������������������������������� 503
Chapter 13: Data Transmission Recipes
����������������������������������������������������������������������� 563
Chapter 14: Game Kit Recipes
�������������������������������������������������������������������������������������� 595
Index�������������������������������������������������������������������������������������������������������������������������������� 651
987430014.022.png
Introduction
The easy part of software development is knowing how to write code in the programming language
at hand. The tougher part is mastering the programming interfaces of the platform and getting to the
level where you can effectively turn ideas into working features with real values.
iOS 6, although extremely powerful and easy to use, is no exception to this. Objective-C, by many
considered a rather “funky” programming language, is something you’ll get your head around rather
quickly, even learn to appreciate. However, you’re likely to spend a lot of time learning the various
APIs and frameworks.
We believe the best way to acquire the necessary knowledge and reach that plateau of high
productivity, is through hands-on experience. We think the best way to learn is to code along,
creating small projects in which you can test and tweek the features, get a feeling for them before
you implement them in your real projects.
With this idea in mind, we created iOS 6 Recipes . It contains over 600 pages of sample code
accompanied by instructions on how to create small test apps that allow you to run the code on your
iOS 6 device or in the iOS Simulator.
We have tried to cover as many topics as possible using the features of iOS 6. We hope it provides
the basic fundament you need to start converting your great ideas into fantastic apps.
Who This Book Is For
When you read this book, it will help if you have a basic knowledge of Objective-C, have taken your
irst steps in Xcode, and written a couple of Hello World apps. If you haven’t, don’t worry; just pay
extra attention to the irst eight recipes of Chapter 1. They should provide most of the basics you
need to follow along.
How This Book Is Structured
The example-based chapters of this book do not particularly build off of one another, in the hope
that you can simply open up to any chapter of speciic interest and start building a certain type of
xxv
987430014.023.png
Zgłoś jeśli naruszono regulamin