《iOS6编程Cookbook(影印版)》将帮助你克服那些为ilPhone,iPad或者iPodtouch创建应用时不可避免会碰到的各种棘手问题。通过利用在本修订手册中列出的新的和校正过的实例,你将快速掌握编写完成iOS应用所需的各个步骤一一包括存储和保护数据、增强和动画化图形、管理文件和目录以及使用Passbook。拉哈万蒂夫
《iOS6编程Cookbook(影印版)》针对iOS 6SDK做了完整的更新,它为你展示了如何使用数以百计的技术来解决各个层面的开发人员都会面临的常见问题。每种实例都包含了你可以直接使用的样例代码。使用Pass Kit来提交诸如忠诚卡(10yalty card)这样的数字签名通行证使用Pass Kit来提交诸如忠诚卡(10yalty card)这样的数字签名通行证使用Cocoa Auto LayotJt来定义Ul元素的布局开发位置感知的应用实现手势识别的样例使用新的Objective—C运行时特性播放音频和视频文件与访问iPod库从Address Book中检索联系人和群组确定相机的可用性和访问Pfloto库创建多任务感知的应用使用Everlt Kit来管理日程表、日期和事件运用加速计和陀螺仪使用iCloud服务来增强你的应用
目录
- Preface
- 1. The Basics
- 1.1 Creating a Simple lOS App in Xcode
- 1.2 Understanding Interface Builder
- 1.3 Compiling lOS Apps
- 1.4 Running lOS Apps on the Simulator
- 1.5 Running lOS Apps on lOS Devices
- 1.6 Packaging lOS Apps for Distribution
- 1.7 Declaring Variables in Objective-C
- 1.8 Allocating and Making Use of Strings
- 1.9 Comparing Values in Objective-C with an if Statement
- 1.10 Implementing Loops with for Statements
- 1.11 Implementing while Loops
- 1.12 Creating Custom Classes
- 1.13 Defining Functionality for Classes
- 1.14 Defining Two or More Methods with the Same Name
- 1.15 Allocating and Initializing Objects
- 1.16 Adding Properties to Classes
- 1.17 Moving from Manual Reference Counting to Automatic Reference
- Counting
- 1.18 Typecasting with Automatic Reference Counting
- 1.19 Delegating Tasks with Protocols
- 1.20 Determining Whether Instance or Class Methods Are Available
- 1.21 Determining Whether a Class Is Available at Runtime
- 1.22 Allocating and Making Use of Numbers
- 1.23 Allocating and Making Use of Arrays
- 1.24 Allocating and Making Use of Dictionaries
- 1.25 Allocating and Making Use of Sets
- 1.26 Creating Bundles
- 1.27 Loading Data from the Main Bundle
- 1.28 Loadin~ Data from Other Bundles
- 1.29 Sending Notifications with NSNotificationCenter
- 1.30 Listening for Notifications Sent from NSNotificationCenter
- 2. Implementing Controllers and Views
- 3. Auto Layout and the Visual Format Language
- 4.Constructing and Using Table Views
- 5.Storyboards
- 6.Concurrency
- 7.Core Location and Maps.
- 8.Implementing Gesture Recognizers
- 9.NetworkingIJSONlXMLlandTwitter
- 10.Audio and Video
- 11.Address Book
- 12.Files and Folder Management
- 13.Camera and the Photo Library
- 14.Multitasking
- 15.Core Data
- 16.Dates,Calendars,and Events
- 17.Graphics and Animations
- 18.Core Motion
- 19.iCloud
- 20.PassKit
- lndex