... Address Book 55 0
10.2
Retrieving All the People in the Address Book 55 2
10.3
Retrieving Properties of Address Book Entries 55 3
10.4
Inserting a Person Entry into the Address Book 55 8
10 .5
Inserting ... 747
15. 3
Constructing, Setting, and Using Colors 749
15. 4
Drawing Images 754
15. 5
Drawing Lines 759
15. 6
Constructing Paths 766
15. 7
Drawing Rectangles 771
15. 8
Adding Shadows to Shapes 776
Table of Contents ... While Playing Audio 51 7
9.3
Recording Audio 51 8
9.4
Handling Interruptions While Recording Audio 52 5
9 .5
Playing Audio over Other Active Sounds 52 6
9.6
Playing Video Files 53 0
9.7
Capturing Thumbnails...
... . . 55 1
14.1 Drawing Basic Shapes on a Graphics Context 55 2
14.2 Drawing Paths on a Graphics Context 55 5
viii | Table of Contents
Figure 1-1. The New File dialog
After
you click Finish, Xcode ... of Calendars 50 2
13.2 Adding Events to Calendars 50 4
13.3 Accessing the Contents of Calendars 50 7
13.4 Removing Events from Calendars 51 2
13 .5 Adding Recurring Events to Calendars 52 3
13.6 Retrieving ... available in iOS 3 and iOS
4. In some recipes, you will find code that runs only on iOS 4 and later; in those recipes,
I note that you will need the iOS 4 SDK or later to compile the example code.
xi
...
... Entries 54 4
11 .5
Inserting a Person Entry into the Address Book 54 9
11.6 Inserting a Group Entry into the Address Book 55 2
11.7 Adding Persons to Groups 55 5
11.8 Searching the Address Book 55 7
11.9 ... at:
http://oreil.ly /iOS6 _Programming_ CB
To access the source codes for this book, please see the author’s website at:
https://github.com/vandadnp /ios- 6 -programming- cookbook- source- codes
To comment ... Simple iOS App in Xcode 2
1.2 Understanding Interface Builder 5
1.3
Compiling iOS Apps 7
1.4 Running iOS Apps on the Simulator 11
1 .5
Running iOS Apps on iOS Devices 12
1.6
Packaging iOS Apps...
... Entries 54 4
11 .5
Inserting a Person Entry into the Address Book 54 9
11.6 Inserting a Group Entry into the Address Book 55 2
11.7 Adding Persons to Groups 55 5
11.8 Searching the Address Book 55 7
11.9 ... . . . . . . 50 5
10.1
Playing Audio Files 50 5
10.2
Handling Interruptions while Playing Audio 50 7
10.3
Recording Audio 50 8
10.4
Handling Interruptions while Recording Audio 51 5
10 .5
Playing Audio ... from Files 57 5
12.3
Creating Folders on Disk 58 0
12.4
Enumerating Files and Folders 58 1
12 .5
Deleting Files and Folders 58 6
12.6
Securing Files on Disk 59 0
12.7
Saving Objects to Files 59 5
13. Camera...
... 6 iOS5Programming Pushing the Limits
Source Code
As you work through the examples in this book, you may choose either to type in all the code manually or to
use the sourcecode les ... ................................. 355
Core Foundation Types 355
Naming and Memory Management 356
Allocators 357
Introspection 358
Strings and Data 359
Constant Strings 359
Creating Strings 359
Converting to C Strings 360
Other ... Glyphs 3 45
Drawing Text Along a Curve 346
Comparison of Rich Text Options 351
Third-Party Options 351
NSAttributedString-Additions-for-HTML 351
CoreTextWrapper 352
OmniUI 352
Summary 352
Further...
... . . . 6 25
15. 1. Detecting and Probing the Camera 627
15. 2. Taking Photos with the Camera 632
15. 3. Taking Videos with the Camera 636
15. 4. Storing Photos in the Photo Library 639
15. 5. Storing ... While Playing Audio 53 4
12.3. Recording Audio 53 5
12.4. Handling Interruptions While Recording Audio 54 2
12 .5. Playing Audio over Other Active Sounds 54 3
12.6. Playing Video Files 54 7
12.7. Capturing ... . . . . . 50 1
11.1. Downloading Asynchronously with NSURLConnection 50 1
11.2. Handling Timeouts in Asynchronous Connections 50 4
11.3. Downloading Synchronously with NSURLConnection 50 6
11.4....
... . . 157
The Documentation Window 158
Class Documentation Pages 159
Sample Code 163
Other Resources 164
Quick Help 164
Symbols 1 65
Header Files 1 65
Internet Resources 166
9. Life Cycle of a Project ... Methods 50
Sending a Message 50
Declaring a Method 51
Nesting Method Calls 52
No Overloading 53
Parameter Lists 54
Unrecognized Selectors 54
Typecasting and the id Type 56
Messages as Data Type 60
C ... 244
Notifications 246
Receiving a Built-In Notification 247
Unregistering 249
NSTimer 251
Delegation 251
Data Sources 255
Actions 256
The Responder Chain 261
Deferring Responsibility 261
Nil-Targeted Actions...