Learning Swift:
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo
O'Reilly
May 2016
|
Ausgabe: | First edition |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | Auf dem Cover: "Learning Swift, building apps for OS X and IOS ; "Covers Swift 2" |
Beschreibung: | xiv, 518 Seiten Illustrationen |
ISBN: | 9781491940747 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV043587388 | ||
003 | DE-604 | ||
005 | 20160722 | ||
007 | t | ||
008 | 160606s2016 a||| |||| 00||| eng d | ||
020 | |a 9781491940747 |c pbk. |9 978-1-491-94074-7 | ||
035 | |a (OCoLC)951366219 | ||
035 | |a (DE-599)BVBBV043587388 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-1050 |a DE-11 |a DE-91G |a DE-188 |a DE-20 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a DAT 368f |2 stub | ||
100 | 1 | |a Manning, Jon |e Verfasser |0 (DE-588)1058941194 |4 aut | |
245 | 1 | 0 | |a Learning Swift |c Jon Manning, Paris Buttfield-Addison, and Tim Nugent |
246 | 1 | 3 | |a Learning Swift building apps for OS X and IOS |
250 | |a First edition | ||
264 | 1 | |a Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo |b O'Reilly |c May 2016 | |
300 | |a xiv, 518 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
500 | |a Auf dem Cover: "Learning Swift, building apps for OS X and IOS ; "Covers Swift 2" | ||
650 | 0 | 7 | |a Swift 2.0 |0 (DE-588)1078025495 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Swift 2.0 |0 (DE-588)1078025495 |D s |
689 | 0 | |5 DE-604 | |
700 | 1 | |a Buttfield-Addison, Paris |e Verfasser |0 (DE-588)1106357965 |4 aut | |
700 | 1 | |a Nugent, Tim |e Verfasser |0 (DE-588)1063924693 |4 aut | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029001900&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-029001900 |
Datensatz im Suchindex
_version_ | 1804176321745518592 |
---|---|
adam_text | Titel: Learning Swift
Autor: Manning, Jon
Jahr: 2016
Table of Contents
Preface ix
Parti. Swift Basics
1. Getting Started 3
The Apple Developer Program 5
Registering for the Apple Developer Program 6
Downloading Xcode 7
Creating Your First Project with Xcode 8
The Xcode Interface 13
Developing a Simple Swift Application 21
Designing the Interface 22
Connecting the Code 23
Using the iOS Simulator 25
Conclusion 27
2. The Basics of Swift 29
The Swift Programming Language 30
Swift 1 Versus Swift 2 32
Playgrounds 22
Comments 24
Control Flow 25
Loops 25
Switches 26
Variables and Constants 29
Operators 40
Types 41
iii
Working with Strings
Comparing Strings
Searching Strings
Optional Types
Type Casting
Tuples
Arrays
Dictionaries
Enumerations
Sets
Functions and Closures
Using Functions as Variables
Closures
The defer Keyword
The guard Keyword
Conclusion
3. Swift for Object-Oriented App Development
Classes and Objects
Initialization and Deinitialization
Properties
Inheritance
Protocols
Extensions
Access Control
Operator Overloading
Generics
Subscripts
Structures
Modules
The Swift Standard Library, Foundation, Cocoa, and Cocoa Touch
Data
Loading Data from Files and URLs
Serialization and Deserialization
Error Handling
Memory Management
Design Patterns in Cocoa and Cocoa Touch
Model-View-Controller
Delegation
Structuring an App
The Application Delegate
Window Controllers and View Controllers
Nibs and Storyboards
Conclusion
88
88
Part II. AnOSXApp
4. Setting Up the OS X Notes App 91
Designing the OS X Notes App 92
Creating the OS X Project 95
Defining a Document Type 100
Adding the Icon 104
Conclusion 106
5. Working with Documents on OS X 107
The NSDocument Class 107
Storing Data in the Document 108
Storing Text 109
Package File Formats 110
The guard Keyword, and Why Its Great 114
Saving Files 115
Loading Files 118
A Basic UI 119
Conclusion 128
6. User Interfaces and iCIoud 129
Updating the UI 129
Document-Filetype-Extension UI 133
Getting an Icon for the Collection View Cells 138
Adding Attachments 139
Storing and Managing Attachments 147
Displaying Data in the Collection View 151
Enhancing Attachments 154
Opening Attachments 154
JSON Attachments 157
Adding Attachments via Drag-and-Drop 160
Adding QuickLook 163
iCIoud 108
The Basics of iCIoud 109
Conclusion 1^2
Table of Contents | v
Part III. AniOSApp
7. Setting Up the iOS Notes App 175
Designing the iOS Notes App .
Creating the iOS Project 1^3
Enabling the iOS App for iCIoud *87
Defining a Document Type
Conclusion 1 ^
8. Working with Files in iCIoud 195
The App Sandbox 195
iCIoud Availability 197
Creating the Document List View Controller 198
View Controllers and Storyboards _ 200
The Navigation Controller 200
Collection Views 204
Using Constraints to Control Size and Position , 206
Creating the Document Class 210
Listing Documents
Creating Documents 226
Downloading from iCIoud 229
Deleting Documents 233
Renaming Documents 240
Conclusion 244
9. Working with Documents on iOS
Adding a View to Display Notes 245
Editing and Saving Documents { 1 ( , 254
Conclusion a 255
10. Working with Files and File Types 257
Setting Up the Interface for Attachments 257
Listing Attachments . 261
Determining Types of Attachments ,, 263
Displaying Attachment Cells 266
Dealing with Conflicts ^ 272
Creating the Quick Look Thumbnail , t 278
Conclusion * 281
11. Images and Deletion 283
Adding Attachments 283
Adding Image Attachments 285
vi [ Table of Contents
Viewing Attachments
Deleting Attachments
Conclusion
292
302
309
12. Supporting the iOS Ecosystem 311
Sharing with UIActivityControlIer 311
Handoffs 314
Searchability 319
Conclusion 321
13. Extending iOS Apps 323
Searching with a Spotlight Indexing Extension 324
Today Widgets 334
Conclusion 342
14. Multimedia, Contacts, Location, and Notifications 345
Location Attachments 345
Audio Attachments 360
Video Attachments 373
Contact Attachments 381
Notifications 385
Conclusion 397
15. Polishing the iOSApp 399
Speaking Text 399
Opening Links in SFSafariViewController 401
3D Touch 405
Home Screen Quick Actions 406
Peek and Pop 406
Settings 407
Undo Support 409
Images with Filters 412
Worldwide Apps 416
Internationalization 417
Localization 420
Accessibility 425
Splitscreen Multitasking 430
Conclusion 431
Table of Contents | vii
Part IV. Extending Your Apps
16. Building a watchOS App
Designing for the Watch ......
Designing Our watchOS App
Creating the watchOS Extension
Communicating with the iPhone
User Interfaces for the Apple Watch
Showing Note Contents
Creating New Notes
Adding Handoff Between the Watch and the iPhone
Glances
Conclusion
17, Code Quality and Distribution
Debugging
Instruments
Testing
Unit Testing
UI Testing
Using Objective-C and Swift in the Same Project
Using Swift Objects in Objective-C
Using Objective-C Objects in Swift
The App Store
App Thinning
Testing iOS Apps with TestFlight
Conclusion
Index
435
436
438
440
444
456
462
468
470
473
477
479
479
482
487
488
489
491
491
492
493
494
495
496
497
VIII
Table of Contents
|
any_adam_object | 1 |
author | Manning, Jon Buttfield-Addison, Paris Nugent, Tim |
author_GND | (DE-588)1058941194 (DE-588)1106357965 (DE-588)1063924693 |
author_facet | Manning, Jon Buttfield-Addison, Paris Nugent, Tim |
author_role | aut aut aut |
author_sort | Manning, Jon |
author_variant | j m jm p b a pba t n tn |
building | Verbundindex |
bvnumber | BV043587388 |
classification_rvk | ST 250 |
classification_tum | DAT 368f |
ctrlnum | (OCoLC)951366219 (DE-599)BVBBV043587388 |
discipline | Informatik |
edition | First edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01610nam a2200385 c 4500</leader><controlfield tag="001">BV043587388</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20160722 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">160606s2016 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781491940747</subfield><subfield code="c">pbk.</subfield><subfield code="9">978-1-491-94074-7</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)951366219</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043587388</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1050</subfield><subfield code="a">DE-11</subfield><subfield code="a">DE-91G</subfield><subfield code="a">DE-188</subfield><subfield code="a">DE-20</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">DAT 368f</subfield><subfield code="2">stub</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Manning, Jon</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1058941194</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learning Swift</subfield><subfield code="c">Jon Manning, Paris Buttfield-Addison, and Tim Nugent</subfield></datafield><datafield tag="246" ind1="1" ind2="3"><subfield code="a">Learning Swift building apps for OS X and IOS</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">First edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">May 2016</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xiv, 518 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Auf dem Cover: "Learning Swift, building apps for OS X and IOS ; "Covers Swift 2"</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Swift 2.0</subfield><subfield code="0">(DE-588)1078025495</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Swift 2.0</subfield><subfield code="0">(DE-588)1078025495</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Buttfield-Addison, Paris</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1106357965</subfield><subfield code="4">aut</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Nugent, Tim</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1063924693</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029001900&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029001900</subfield></datafield></record></collection> |
id | DE-604.BV043587388 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:30:20Z |
institution | BVB |
isbn | 9781491940747 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029001900 |
oclc_num | 951366219 |
open_access_boolean | |
owner | DE-1050 DE-11 DE-91G DE-BY-TUM DE-188 DE-20 |
owner_facet | DE-1050 DE-11 DE-91G DE-BY-TUM DE-188 DE-20 |
physical | xiv, 518 Seiten Illustrationen |
publishDate | 2016 |
publishDateSearch | 2016 |
publishDateSort | 2016 |
publisher | O'Reilly |
record_format | marc |
spelling | Manning, Jon Verfasser (DE-588)1058941194 aut Learning Swift Jon Manning, Paris Buttfield-Addison, and Tim Nugent Learning Swift building apps for OS X and IOS First edition Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo O'Reilly May 2016 xiv, 518 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Auf dem Cover: "Learning Swift, building apps for OS X and IOS ; "Covers Swift 2" Swift 2.0 (DE-588)1078025495 gnd rswk-swf Swift 2.0 (DE-588)1078025495 s DE-604 Buttfield-Addison, Paris Verfasser (DE-588)1106357965 aut Nugent, Tim Verfasser (DE-588)1063924693 aut HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029001900&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Manning, Jon Buttfield-Addison, Paris Nugent, Tim Learning Swift Swift 2.0 (DE-588)1078025495 gnd |
subject_GND | (DE-588)1078025495 |
title | Learning Swift |
title_alt | Learning Swift building apps for OS X and IOS |
title_auth | Learning Swift |
title_exact_search | Learning Swift |
title_full | Learning Swift Jon Manning, Paris Buttfield-Addison, and Tim Nugent |
title_fullStr | Learning Swift Jon Manning, Paris Buttfield-Addison, and Tim Nugent |
title_full_unstemmed | Learning Swift Jon Manning, Paris Buttfield-Addison, and Tim Nugent |
title_short | Learning Swift |
title_sort | learning swift |
topic | Swift 2.0 (DE-588)1078025495 gnd |
topic_facet | Swift 2.0 |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029001900&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT manningjon learningswift AT buttfieldaddisonparis learningswift AT nugenttim learningswift AT manningjon learningswiftbuildingappsforosxandios AT buttfieldaddisonparis learningswiftbuildingappsforosxandios AT nugenttim learningswiftbuildingappsforosxandios |