Introduction |
|
xxiii | |
Section I: Hello iOS! |
|
|
|
3 | (16) |
|
|
3 | (8) |
|
|
3 | (1) |
|
|
4 | (1) |
|
|
4 | (2) |
|
|
6 | (1) |
|
The Typical App Development Process |
|
|
6 | (2) |
|
|
8 | (1) |
|
|
8 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
|
10 | (1) |
|
|
11 | (8) |
|
|
11 | (1) |
|
|
11 | (1) |
|
|
11 | (8) |
|
Lesson 2 : A Tour Of XCODE And The iOS Simulator |
|
|
19 | (16) |
|
|
19 | (1) |
|
|
20 | (2) |
|
An Overview of the Xcode IDE |
|
|
22 | (9) |
|
|
22 | (4) |
|
|
26 | (2) |
|
|
28 | (2) |
|
|
30 | (1) |
|
|
30 | (1) |
|
Features of the iOS Simulator |
|
|
31 | (2) |
|
Installing and Uninstalling Applications |
|
|
32 | (1) |
|
Limitations of the iOS Simulator |
|
|
33 | (1) |
|
|
33 | (2) |
|
|
33 | (1) |
|
|
33 | (1) |
|
|
33 | (2) |
|
Lesson 3 Introducing Swift |
|
|
35 | (18) |
|
Introducing Xcode Playgrounds |
|
|
35 | (2) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
39 | (1) |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
41 | (1) |
|
|
42 | (7) |
|
|
42 | (2) |
|
|
44 | (1) |
|
|
45 | (4) |
|
Control Transfer Statements |
|
|
49 | (1) |
|
|
50 | (3) |
|
|
50 | (1) |
|
|
50 | (1) |
|
|
50 | (3) |
|
|
53 | (4) |
|
|
53 | (1) |
|
Parameters and Return Values |
|
|
53 | (2) |
|
|
55 | (2) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
55 | (2) |
|
|
57 | (6) |
|
|
57 | (1) |
|
|
58 | (2) |
|
|
58 | (1) |
|
|
58 | (1) |
|
|
59 | (1) |
|
|
60 | (3) |
|
|
60 | (1) |
|
|
60 | (1) |
|
|
60 | (3) |
|
|
63 | (6) |
|
|
63 | (1) |
|
Throwing and Catching Errors |
|
|
64 | (2) |
|
Suppressing Error Handling |
|
|
65 | (1) |
|
|
66 | (1) |
|
|
66 | (3) |
|
|
66 | (1) |
|
|
67 | (1) |
|
|
67 | (2) |
|
Lesson 7 Object-Oriented Programming With Swift |
|
|
69 | (16) |
|
Creating Classes with Swift |
|
|
70 | (1) |
|
|
70 | (1) |
|
|
71 | (3) |
|
|
74 | (1) |
|
|
74 | (2) |
|
|
76 | (1) |
|
|
77 | (1) |
|
|
77 | (4) |
|
|
81 | (4) |
|
|
81 | (1) |
|
|
81 | (1) |
|
|
81 | (4) |
|
Lesson 8 Supporting Multiple Device Types |
|
|
85 | (10) |
|
|
86 | (4) |
|
|
86 | (1) |
|
|
87 | (2) |
|
|
89 | (1) |
|
The Universal XCode Template |
|
|
90 | (1) |
|
|
91 | (4) |
|
|
91 | (1) |
|
|
91 | (1) |
|
|
91 | (4) |
|
Lesson 9 Introduction To UIKit And Adaptive Layout |
|
|
95 | (22) |
|
Introducing the UIKit Framework |
|
|
95 | (4) |
|
|
97 | (1) |
|
|
98 | (1) |
|
|
99 | (7) |
|
|
106 | (2) |
|
|
108 | (2) |
|
|
110 | (1) |
|
|
110 | (7) |
|
|
110 | (1) |
|
|
111 | (1) |
|
|
111 | (6) |
|
Lesson 10 Introduction To Storyboards |
|
|
117 | (26) |
|
|
124 | (19) |
|
|
124 | (1) |
|
|
125 | (1) |
|
|
125 | (18) |
Section II: More iOS Development |
|
|
Lesson 11 Handling User Input |
|
|
143 | (12) |
|
|
143 | (3) |
|
|
146 | (1) |
|
|
147 | (8) |
|
|
147 | (1) |
|
|
148 | (1) |
|
|
148 | (7) |
|
Lesson 12 Alert Views And Action Sheets |
|
|
155 | (12) |
|
|
155 | (4) |
|
|
159 | (2) |
|
|
161 | (6) |
|
|
161 | (1) |
|
|
161 | (1) |
|
|
161 | (6) |
|
Lesson 13 Adding Images To Your View |
|
|
167 | (10) |
|
|
167 | (3) |
|
|
170 | (2) |
|
|
172 | (5) |
|
|
172 | (1) |
|
|
172 | (1) |
|
|
172 | (5) |
|
|
177 | (16) |
|
|
181 | (3) |
|
|
184 | (1) |
|
|
185 | (8) |
|
|
185 | (1) |
|
|
185 | (1) |
|
|
186 | (7) |
|
Lesson 15 Navigation Controllers |
|
|
193 | (10) |
|
Adding a Navigation Controller to a Storyboard |
|
|
193 | (3) |
|
The Navigation Controller Interface |
|
|
196 | (1) |
|
|
197 | (6) |
|
|
198 | (1) |
|
|
198 | (1) |
|
|
198 | (5) |
|
|
203 | (14) |
|
|
203 | (2) |
|
Creating a Table View with Interface Builder |
|
|
205 | (6) |
|
|
206 | (1) |
|
|
207 | (4) |
|
|
211 | (6) |
|
|
211 | (1) |
|
|
211 | (1) |
|
|
211 | (6) |
|
Lesson 17 Collection Views |
|
|
217 | (12) |
|
Creating a Collection View with Interface Builder |
|
|
218 | (1) |
|
|
219 | (1) |
|
Collection View Delegate and Data Source |
|
|
220 | (2) |
|
|
222 | (7) |
|
|
222 | (1) |
|
|
223 | (1) |
|
|
223 | (6) |
|
Lesson 18 Tab Bars And Toolbars |
|
|
229 | (16) |
|
Creating a Tab Bar Controller |
|
|
231 | (4) |
|
|
235 | (3) |
|
|
238 | (7) |
|
|
239 | (1) |
|
|
239 | (1) |
|
|
239 | (6) |
|
Lesson 19 Creating Views That Scroll |
|
|
245 | (12) |
|
|
245 | (3) |
|
Scroll Views and Text Fields |
|
|
248 | (1) |
|
|
249 | (8) |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
250 | (7) |
|
Lesson 20 Popovers And Modal Views |
|
|
257 | (12) |
|
|
257 | (3) |
|
|
260 | (2) |
|
|
262 | (7) |
|
|
262 | (1) |
|
|
263 | (1) |
|
|
263 | (6) |
|
Lesson 21 Touches And Gestures |
|
|
269 | (8) |
|
|
269 | (1) |
|
|
270 | (1) |
|
|
271 | (6) |
|
|
271 | (1) |
|
|
272 | (1) |
|
|
272 | (5) |
Section III: Storing Data And Network Programming |
|
|
|
277 | (8) |
|
|
277 | (2) |
|
|
279 | (1) |
|
|
280 | (5) |
|
|
280 | (1) |
|
|
280 | (1) |
|
|
280 | (5) |
|
Lesson 23 Application Settings |
|
|
285 | (10) |
|
|
285 | (4) |
|
Reading Preferences with Code |
|
|
289 | (1) |
|
|
290 | (5) |
|
|
290 | (1) |
|
|
290 | (1) |
|
|
291 | (4) |
|
Lesson 24 Introduction To iCloud Storage |
|
|
295 | (32) |
|
|
295 | (2) |
|
Preparing to Use the iCloud Storage APIs |
|
|
297 | (12) |
|
Creating an iCloud-Enabled App ID |
|
|
297 | (5) |
|
Creating an Appropriate Provisioning Profile |
|
|
302 | (6) |
|
Enabling Appropriate Entitlements in Your Xcode Project |
|
|
308 | (1) |
|
Checking for Service Availability |
|
|
309 | (1) |
|
Using iCloud Document Storage |
|
|
310 | (5) |
|
Creating a New iCloud Document |
|
|
311 | (1) |
|
Opening an Existing Document |
|
|
312 | (1) |
|
|
312 | (1) |
|
Searching for Documents on iCloud |
|
|
313 | (2) |
|
|
315 | (12) |
|
|
315 | (1) |
|
|
316 | (1) |
|
|
316 | (11) |
|
Lesson 25 Introduction To Cloudkit |
|
|
327 | (54) |
|
Containers, Databases, and Records |
|
|
327 | (3) |
|
Development and Production Environments |
|
|
330 | (1) |
|
|
331 | (7) |
|
|
331 | (2) |
|
|
333 | (1) |
|
Creating Relationships Between Record Types |
|
|
333 | (1) |
|
|
334 | (2) |
|
Modifying and Deleting Records |
|
|
336 | (1) |
|
Resetting the Development Schema |
|
|
337 | (1) |
|
|
337 | (1) |
|
Preparing to Use CloudKit |
|
|
338 | (12) |
|
Create an iCloud-Enabled App ID |
|
|
338 | (6) |
|
Create an Appropriate Provisioning Profile |
|
|
344 | (6) |
|
Enable Appropriate Entitlements in Your Xcode Project |
|
|
350 | (1) |
|
|
350 | (2) |
|
Checking for Service Availability |
|
|
351 | (1) |
|
Creating Records Programmatically |
|
|
351 | (1) |
|
|
352 | (1) |
|
|
352 | (29) |
|
|
353 | (1) |
|
|
353 | (1) |
|
|
353 | (28) |
|
Lesson 26 Introduction To Core Data |
|
|
381 | (18) |
|
|
381 | (3) |
|
|
381 | (1) |
|
|
381 | (1) |
|
Persistent Store Coordinator |
|
|
382 | (1) |
|
|
383 | (1) |
|
|
383 | (1) |
|
Adding Core Data to a Project |
|
|
384 | (5) |
|
Instantiating Core Data Objects |
|
|
389 | (1) |
|
|
390 | (1) |
|
|
391 | (1) |
|
|
391 | (8) |
|
|
391 | (1) |
|
|
392 | (1) |
|
|
392 | (7) |
|
Lesson 27 Consuming Restful JSON Web Services |
|
|
399 | (18) |
|
|
400 | (1) |
|
|
400 | (1) |
|
|
401 | (1) |
|
JSON and NSJSONSerialization |
|
|
401 | (2) |
|
NSURLSession and Application Transport Security |
|
|
403 | (5) |
|
|
404 | (1) |
|
|
405 | (1) |
|
Application Transport Security |
|
|
406 | (2) |
|
|
408 | (9) |
|
|
408 | (1) |
|
|
409 | (1) |
|
|
409 | (8) |
Section IV: Beyond The Basics |
|
|
Lesson 28 Social Media Integration |
|
|
417 | (10) |
|
|
418 | (3) |
|
|
421 | (6) |
|
|
421 | (1) |
|
|
421 | (1) |
|
|
422 | (5) |
|
Lesson 29 Where Am I? Introducing Core Location |
|
|
427 | (16) |
|
|
428 | (2) |
|
|
430 | (1) |
|
Receiving Location Updates |
|
|
431 | (2) |
|
Handling Errors and Checking Hardware Availability |
|
|
433 | (1) |
|
Geocoding and Reverse Geocoding |
|
|
434 | (1) |
|
Obtaining Compass Headings |
|
|
435 | (1) |
|
|
436 | (7) |
|
|
436 | (1) |
|
|
437 | (1) |
|
|
437 | (6) |
|
Lesson 30 Introduction To Map Kit |
|
|
443 | (12) |
|
|
444 | (3) |
|
|
447 | (1) |
|
|
447 | (8) |
|
|
448 | (1) |
|
|
448 | (1) |
|
|
449 | (6) |
|
Lesson 31 Using The Camera And Photo Library |
|
|
455 | (10) |
|
Selecting the Image Source |
|
|
456 | (1) |
|
Presenting the Image Picker |
|
|
456 | (3) |
|
|
459 | (6) |
|
|
459 | (1) |
|
|
459 | (1) |
|
|
459 | (6) |
|
Lesson 32 Introduction To User Interface Testing |
|
|
465 | (20) |
|
Adding Support for UI Testing to Your Project |
|
|
465 | (3) |
|
|
468 | (1) |
|
New Classes for UI Testing |
|
|
469 | (8) |
|
|
469 | (1) |
|
|
470 | (1) |
|
|
471 | (1) |
|
|
472 | (3) |
|
|
475 | (1) |
|
XCUIElementTypeQueryProvider |
|
|
476 | (1) |
|
|
477 | (1) |
|
|
478 | (1) |
|
Waiting for Elements in a UI Test |
|
|
479 | (1) |
|
|
480 | (5) |
|
|
480 | (1) |
|
|
480 | (1) |
|
|
481 | (4) |
|
Lesson 33 Introduction To Test Driven Development |
|
|
485 | (22) |
|
Adding Support for Unit Testing to Your Project |
|
|
486 | (2) |
|
|
488 | (1) |
|
|
488 | (1) |
|
|
488 | (1) |
|
Don't Write Code You Do Not Yet Need |
|
|
489 | (1) |
|
|
489 | (2) |
|
|
491 | (2) |
|
|
493 | |
|
|
493 | (1) |
|
|
493 | (1) |
|
|
494 | |
Section V: Reference |
|
|
Appendix A: Testing Your App On A Device |
|
|
507 | (20) |
|
Appendix B: Beta Testing With Testflight |
|
|
527 | (26) |
|
Appendix C: App Store Distribution |
|
|
553 | (16) |
Index |
|
569 | |