About the Author |
|
xiii | |
About the Technical Reviewer |
|
xv | |
Acknowledgement |
|
xvii | |
Introduction |
|
xix | |
|
Chapter 1 Common API Elements |
|
|
1 | (1) |
|
|
1 | (2) |
|
|
3 | (2) |
|
|
5 | (2) |
|
Always Check Authorization Status |
|
|
6 | (1) |
|
|
7 | (2) |
|
All the Apps in the Settings |
|
|
9 | (5) |
|
|
14 | (1) |
|
|
15 | (3) |
|
|
18 | (1) |
|
Chapter 2 Photos and Camera |
|
|
19 | (1) |
|
Full Access and Geolocation |
|
|
19 | (3) |
|
A Picture Worth 1000 Metadata |
|
|
20 | (1) |
|
|
21 | (1) |
|
Pick Only One or a Few Pictures |
|
|
22 | (2) |
|
|
24 | (4) |
|
Not for Your Simulator Yet |
|
|
26 | (1) |
|
Inside That info Dictionary |
|
|
26 | (2) |
|
|
28 | (1) |
|
|
28 | (4) |
|
Photos App Wants Access to Your Photo? |
|
|
32 | (2) |
|
Facial Recognition with Vision |
|
|
34 | (1) |
|
That Amazing TrueDepth Camera |
|
|
35 | (1) |
|
|
36 | (3) |
|
Chapter 3 Location and MapKit |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
41 | (3) |
|
|
43 | (1) |
|
When You First Start an App |
|
|
44 | (1) |
|
|
45 | (2) |
|
Provisional Always Authorization |
|
|
46 | (1) |
|
|
47 | (1) |
|
|
47 | (1) |
|
|
48 | (1) |
|
|
48 | (6) |
|
|
51 | (2) |
|
Even Without Localization Services Enabled |
|
|
53 | (1) |
|
Fixed Location or Moving Location |
|
|
54 | (1) |
|
|
55 | (3) |
|
Less Reasons to Use Always in iOS 13 |
|
|
57 | (1) |
|
Temporary Authorization iOS 13 |
|
|
57 | (1) |
|
MapKit Knows Your Country |
|
|
58 | (1) |
|
|
59 | (1) |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
63 | (2) |
|
|
65 | (1) |
|
The (Long) List of Properties |
|
|
65 | (1) |
|
Different Kinds of Developers |
|
|
66 | (3) |
|
|
67 | (1) |
|
|
67 | (2) |
|
|
69 | (1) |
|
You Don't Need to Ask Permission |
|
|
69 | (3) |
|
|
71 | (1) |
|
What Was That with Location? |
|
|
72 | (2) |
|
|
74 | (1) |
|
|
74 | (3) |
|
|
76 | (1) |
|
Who's Contact? My Contact! |
|
|
77 | (1) |
|
|
78 | (1) |
|
Chapter 5 Calendar and Events |
|
|
79 | (1) |
|
|
79 | (2) |
|
|
81 | (1) |
|
|
82 | (1) |
|
Geolocating Your Appointments |
|
|
83 | (3) |
|
What Exactly Is in the Structured Location? |
|
|
85 | (1) |
|
I'll Show You Where You Were |
|
|
86 | (2) |
|
The Special Birthday Calendar |
|
|
88 | (1) |
|
EventKitUI Still Needs Access |
|
|
89 | (5) |
|
|
91 | (1) |
|
The Event View Controller |
|
|
92 | (2) |
|
|
94 | (1) |
|
|
95 | (2) |
|
Chapter 6 Health and Fitness |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
The Core: Quantity & Unit |
|
|
99 | (1) |
|
|
99 | (1) |
|
|
99 | (1) |
|
All Properties Are Read-Only! |
|
|
99 | (1) |
|
Not Even in Your App's Privacy Settings |
|
|
100 | (1) |
|
|
100 | (1) |
|
Your Missing "me" Card from Contacts |
|
|
101 | (1) |
|
A Different Kind of Alert |
|
|
101 | (4) |
|
|
105 | (2) |
|
A User Can Always Change His Mind in the Settings |
|
|
107 | (1) |
|
Workouts --- and Their Maps |
|
|
107 | (6) |
|
|
113 | (2) |
|
Know Which Objects Were Deleted |
|
|
114 | (1) |
|
|
115 | (2) |
|
|
115 | (2) |
|
|
117 | (2) |
|
|
119 | (1) |
|
|
119 | (1) |
|
|
120 | (15) |
|
|
121 | (3) |
|
|
124 | (1) |
|
|
125 | (4) |
|
|
129 | (2) |
|
|
131 | (1) |
|
|
132 | (1) |
|
|
133 | (1) |
|
I'm Concerned About Preconditions, but |
|
|
133 | (2) |
|
Apple Doesn't Want Your Data |
|
|
135 | (1) |
|
|
136 | (1) |
|
|
137 | (1) |
|
|
137 | (1) |
|
|
137 | (2) |
|
Chapter 7 Siri and Search |
|
|
139 | (1) |
|
|
139 | (1) |
|
|
140 | (1) |
|
|
141 | (9) |
|
|
141 | (2) |
|
|
143 | (3) |
|
|
146 | (1) |
|
|
147 | (2) |
|
|
149 | (1) |
|
Your App Has a Siri Menu... or Not |
|
|
150 | (2) |
|
|
152 | (1) |
|
A Connection to Your Contacts Database |
|
|
153 | (6) |
|
Saving and Retrieving Contacts |
|
|
159 | (5) |
|
|
160 | (4) |
|
|
164 | (4) |
|
|
165 | (3) |
|
NSUserActivity is Tracking You |
|
|
168 | (8) |
|
|
170 | (1) |
|
|
170 | (1) |
|
|
171 | (1) |
|
|
172 | (4) |
|
|
176 | (2) |
|
|
177 | (1) |
|
|
178 | (1) |
|
|
178 | (1) |
|
|
178 | (1) |
|
|
179 | (1) |
|
|
179 | (1) |
|
|
180 | (1) |
|
|
181 | (1) |
|
INInteraction and Custom Intents |
|
|
182 | (3) |
|
|
185 | (1) |
|
|
186 | (1) |
|
|
186 | (2) |
|
|
188 | (1) |
|
|
189 | (1) |
|
|
189 | (1) |
|
|
190 | (2) |
|
|
190 | (2) |
|
|
192 | (1) |
|
The Key and the Permission |
|
|
193 | (1) |
|
The Home Manager and Simulator |
|
|
193 | (3) |
|
|
195 | (1) |
|
|
196 | (2) |
|
|
196 | (2) |
|
|
198 | (3) |
|
|
200 | (1) |
|
|
201 | (2) |
|
|
202 | (1) |
|
Services and Characteristics: Bluetooth Anyone? |
|
|
203 | (2) |
|
|
205 | (1) |
|
|
206 | (1) |
|
|
207 | (1) |
|
|
207 | (1) |
|
|
208 | (1) |
|
|
208 | (1) |
|
|
209 | (1) |
|
|
209 | (1) |
|
|
210 | (2) |
|
|
212 | (1) |
|
|
213 | (2) |
Index |
|
215 | |