... . 44 5
12.1 Creating a Core Data Model with Xcode 44 7
12.2 Creating and Using Core Data Model Classes 45 1
12.3 Creating and Saving Data Using Core Data 45 3
12 .4 Loading Data Using Core Data 45 6
12.5 ... available in iOS 3 and iOS
4. In some recipes, you will find code that runs only on iOS4 and later; in those recipes,
I note that you will need the iOS4 SDK or later to compile the example code.
xi
... Waking Application 43 5
11.9 Handling Locale Changes in the Background 43 8
11.10 Responding to Changes in an Application’s Settings 44 0
11.11 Opting Out of Background Execution 44 2
12. Core Data...
... Interface Builder 142
4. 2 Creating a Map Using Code 143
4. 3 Handling the Events of a Map 146
4.4 Pinpointing a Device’s Location 147
4. 5 Displaying Built-in Pins on a Map View 151
4. 6 Displaying ... . 44 5
12.1 Creating a Core Data Model with Xcode 44 7
12.2 Creating and Using Core Data Model Classes 45 1
12.3 Creating and Saving Data Using Core Data 45 3
12 .4 Loading Data Using Core Data 45 6
12.5 ... and ISBN. For example: iOS4Programming Cookbook, by
Vandad Nahavandipoor (O’Reilly). Copyright 2011 Vandad Nahavandipoor, 978-1-
44 9-38822-5.”
If you feel your use of code examples falls outside...
... 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 ... Xcode
Problem
You’ve started to learn iOSProgramming and you want to create a really simple iOS
Project and app in Xcode.
Solution
Create a new iOS Project in Xcode and then run it in the iOS Simulator using...
... Dybowska.
www.it-ebooks.info
iOS 5 Programming Cookbook
by Vandad Nahavandipoor
Revision History for the :
See http://oreilly.com/catalog/errata.csp?isbn=978 144 931 143 8 for release details.
ISBN: 978-1 -44 9-31 143 -8
1318287906
www.it-ebooks.info
1 .4 ... available in iOS 3 and iOS
4. In some recipes, you will find code that runs only on iOS4 and later; in those recipes,
I note that you will need the iOS4 SDK or later to compile the example code.
ix
www.it-ebooks.info
Figure ... . 45 7
7.1
Detecting Swipe Gestures 45 9
7.2
Detecting Rotation Gestures 46 1
7.3
Detecting Panning and Dragging Gestures 46 5
7 .4
Detecting Long Press Gestures 46 7
7.5
Detecting Tap Gestures 47 0
7.6
Detecting...
... a Simple iOS App in Xcode
Problem
You’ve started to learn iOSProgramming and you want to create a really simple iOS
Project and app in Xcode.
Solution
Create a new iOS Project in Xcode and then ... 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 ... of Multitasking 6 34
14. 2
Completing a Long-Running Task in the Background 635
14. 3
Receiving Local Notifications in the Background 638
14. 4
Playing Audio in the Background 646
14. 5
Handling Location...
... Calendars 696
14. 3
Accessing the Contents of Calendars 700
14. 4
Removing Events from Calendars 705
14. 5
Adding Recurring Events to Calendars 709
14. 6
Retrieving the Attendees of an Event 7 14
14. 7
Adding ... 1-20).
Figure 1-20. Xcode Displaying the Build Settings of an iOS App
4. In the Build Settings tab, scroll down until you get to the Code Signing category,
as shown in Figure 1-20.
5. Under Code Signing ... . . . . 733
15.1
Enumerating and Loading Fonts 745
15.2
Drawing Text 747
15.3
Constructing, Setting, and Using Colors 749
15 .4
Drawing Images 7 54
15.5
Drawing Lines 759
15.6
Constructing Paths...
... 601
14. 1. Finding the Paths of the Most Useful Folders on Disk 603
14. 2. Writing to and Reading from Files 605
14. 3. Creating Folders on Disk 610
14. 4. Enumerating Files and Folders 612
14. 5. ... . . . . . . . 48 1
10.1. Detecting Swipe Gestures 48 3
10.2. Detecting Rotation Gestures 48 5
10.3. Detecting Panning and Dragging Gestures 48 9
10 .4. Detecting Long-Press Gestures 49 1
10.5. Detecting ... Core Data Model with Xcode 737
18.2. Generating Class Files for Core Data Entities 741
18.3. Creating and Saving Data Using Core Data 745
18 .4. Reading Data from Core Data 747
18.5. Deleting Data...
... 38
Creating a data client 42
Chapter 2: Apple Low-level Networking 45
Introduction 45
Retrieving network address information 46
Performing a network address resolution 48
Creating an echo server ... le looks like the following code:
#import <Foundation/Foundation.h>
#define LISTENQ 10 24
#define MAXLINE 40 96
typedef NS_ENUM(NSUInteger, BSDServerErrorCode) {
NOERROR,
SOCKETERROR,
... socket, we will set the errorCode variable to SOCKETERROR
and skip the rest of the code.
www.it-ebooks.info
iii
Table of Contents
Chapter 8: MKNetworkKit 247
Introduction 247
Creating and using the...