Learning Swift 2 programming:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Boston
Addison-Wesley
[2016]
|
Ausgabe: | Second edition |
Schriftenreihe: | Always learning
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | x, 235 Seiten Illustrationen |
ISBN: | 9780134431598 0134431596 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV043358752 | ||
003 | DE-604 | ||
005 | 20160318 | ||
007 | t | ||
008 | 160211s2016 a||| |||| 00||| eng d | ||
020 | |a 9780134431598 |c pbk |9 978-0-13-443159-8 | ||
020 | |a 0134431596 |9 0-13-443159-6 | ||
035 | |a (OCoLC)944079835 | ||
035 | |a (DE-599)BVBBV043358752 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-11 |a DE-91G |a DE-573 |a DE-20 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a DAT 368f |2 stub | ||
100 | 1 | |a Schatz, Jacob |e Verfasser |0 (DE-588)106752360X |4 aut | |
245 | 1 | 0 | |a Learning Swift 2 programming |c Jacob Schatz |
250 | |a Second edition | ||
264 | 1 | |a Boston |b Addison-Wesley |c [2016] | |
264 | 4 | |c © 2016 | |
300 | |a x, 235 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Always learning | |
650 | 4 | |a iOS (Electronic resource) | |
650 | 4 | |a iPhone OS. | |
650 | 4 | |a Swift (Computer program language) | |
650 | 4 | |a Mobile computing / Programming | |
650 | 4 | |a Programming languages (Electronic computers) | |
650 | 4 | |a Application software / Development | |
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 | |
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=028778032&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-028778032 |
Datensatz im Suchindex
_version_ | 1804175916718358528 |
---|---|
adam_text | Titel: Learning Swift 2 programming
Autor: Schatz, Jacob
Jahr: 2016
Table of Contents
Introduction 1
1 Getting Your Feet Wet: Variables, Constants, and Loops 5
Building Blocks of Swift 6
Computed Properties (Getters and Setters) 6
Using Comments 8
Inference 8
Merging Variables into a String 10
Optionals: A Gift to Unwrap 11
Printing Your Results 14
Implicitly Unwrapped Optionals 14
Tuples 15
Number Types 16
From Objective-C to Swift 17
Control Flow: Making Choices 18
Switching It Up: switch Statements 25
Stop...Hammer Time 28
Summary 29
2 Collecting Your Data: Arrays and Dictionaries 31
Using Arrays 31
Your First Array the Long Way 31
A Quicker Array 32
Using AnyObj ect 32
Differences Between NSArrays and Swift Arrays 33
Modifying Arrays 33
Accessing Array Elements 33
Adding Elements to an Array 34
Removing Elements from Arrays 34
Iterating Over Arrays 35
Extra Bits of Arrays 35
Emptying an Array 36
Using Dictionaries 36
Adding, Removing, and Inserting with Dictionaries 37
Contents vii
Iterating Over Dictionaries 37
Extra Bits of Dictionaries 38
Emptying a Dictionary 38
Testing Dictionaries for the Presence of Values 38
Putting It All Together 39
Summary 41
3 Making Things Happen: Functions 43
Defining Functions 44
Return Types 45
Multiple Return Values 46
More on Parameters 47
External Parameter Names 47
Default Parameter Values 48
Variadic Parameters 49
In-Out Parameters 50
Functions as Types 51
Putting It All Together 52
Summary 55
4 Structuring Code: Enums, Structs, and Classes 57
Enums 58
Which Member Was Set? 59
Associated Values 59
Raw Values 60
Structs 61
Defining Methods in Structs 63
Structs Are Always Copied 64
Mutating Methods 65
Classes 66
Initialization 66
What Is a Reference Type? 68
Do I Use a Struct or a Class? 68
Forgot Your Pointer Syntax? 69
Property Observers 69
Methods in Classes 70
Summary 74
viii Contents
5 SpriteKit 75
Introducing SpriteKit 75
The SKNode and SKSpriteNode 75
Creating a Game 76
The New Project Screen 76
The Game 85
Summary 92
6 Reusable Code: Closures 93
What Are Closures? 93
Closures in Other Languages 94
How Closures Work and Why They re Awesome 95
The Closure Syntax 96
Inferring Using Context 96
Arguments Have a Shorthand, Too 97
Sorting a Custom Car Class 97
Closures Are Reference Types 98
Automatic Reference Counting 99
Strong Reference Cycles 100
Trailing Closures 106
Summary 107
7 Creating Your Own Syntax: Subscripts and Advanced Operators 109
Writing Your First Subscript 110
Bits and Bytes with Advanced Operators 113
Bitwise NOT 114
Bitwise AND 115
Bitwise OR 116
Bitwise XOR 117
Shifting Bits 118
UInt8, UIntl6, UInt32, Int8, Intl6,
Int32, and So On 119
Value Overflow and Underflow 119
Customizing Operators 120
Making Your Own Operators 122
Bits and Bytes in Real Life 123
Summary 127
8 Protocols 129
Writing Your First Protocol 129
Properties 131
Animizable and Humanizable 134
Methods 135
Delegation 136
Protocols as Types 138
Protocols in Collections 139
Protocol Inheritance 140
Protocol Composition 141
Protocol Conformity 143
Optional Protocol Prerequisites 145
Optional Chaining 146
Back to Optional Protocol Requisites 148
Useful Built-in Swift Protocols 149
Summary 151
9 Becoming Flexible with Generics 153
The Problem That Generics Solve 153
Other Uses for Generics 155
Generics for Protocols 157
The where Clause 158
Summary 162
10 Games with SpriteKit 163
The Game 163
The Setup 163
Tour the Code 164
The Game 164
Step 1: Create the World 165
Step 2: Making Things Move 176
Summary 185
11 Making Games with Physics 187
Making a Physics-Based Game 187
Creating the Project 188
Adding the Assets 189
Adding the Levels 189
x Contents
Generating the Levels 190
Making a Playable Game 197
Creating the Cage 199
Summary 204
12 Making Apps with UIKit 205
Application Types 205
Single-View Applications 206
Creating the User Interface 208
Adding Constraints 209
Hooking Up the Ul to Code 211
Writing the Code 212
The TableView 216
Summary 218
Index 219
|
any_adam_object | 1 |
author | Schatz, Jacob |
author_GND | (DE-588)106752360X |
author_facet | Schatz, Jacob |
author_role | aut |
author_sort | Schatz, Jacob |
author_variant | j s js |
building | Verbundindex |
bvnumber | BV043358752 |
classification_rvk | ST 250 |
classification_tum | DAT 368f |
ctrlnum | (OCoLC)944079835 (DE-599)BVBBV043358752 |
discipline | Informatik |
edition | Second edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01613nam a2200445 c 4500</leader><controlfield tag="001">BV043358752</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20160318 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">160211s2016 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780134431598</subfield><subfield code="c">pbk</subfield><subfield code="9">978-0-13-443159-8</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">0134431596</subfield><subfield code="9">0-13-443159-6</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)944079835</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043358752</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-11</subfield><subfield code="a">DE-91G</subfield><subfield code="a">DE-573</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">Schatz, Jacob</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)106752360X</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learning Swift 2 programming</subfield><subfield code="c">Jacob Schatz</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">Second edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Boston</subfield><subfield code="b">Addison-Wesley</subfield><subfield code="c">[2016]</subfield></datafield><datafield tag="264" ind1=" " ind2="4"><subfield code="c">© 2016</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">x, 235 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="490" ind1="0" ind2=" "><subfield code="a">Always learning</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">iOS (Electronic resource)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">iPhone OS.</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Swift (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Mobile computing / Programming</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Programming languages (Electronic computers)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software / Development</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="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=028778032&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-028778032</subfield></datafield></record></collection> |
id | DE-604.BV043358752 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:23:54Z |
institution | BVB |
isbn | 9780134431598 0134431596 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-028778032 |
oclc_num | 944079835 |
open_access_boolean | |
owner | DE-11 DE-91G DE-BY-TUM DE-573 DE-20 |
owner_facet | DE-11 DE-91G DE-BY-TUM DE-573 DE-20 |
physical | x, 235 Seiten Illustrationen |
publishDate | 2016 |
publishDateSearch | 2016 |
publishDateSort | 2016 |
publisher | Addison-Wesley |
record_format | marc |
series2 | Always learning |
spelling | Schatz, Jacob Verfasser (DE-588)106752360X aut Learning Swift 2 programming Jacob Schatz Second edition Boston Addison-Wesley [2016] © 2016 x, 235 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Always learning iOS (Electronic resource) iPhone OS. Swift (Computer program language) Mobile computing / Programming Programming languages (Electronic computers) Application software / Development Swift 2.0 (DE-588)1078025495 gnd rswk-swf Swift 2.0 (DE-588)1078025495 s DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028778032&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Schatz, Jacob Learning Swift 2 programming iOS (Electronic resource) iPhone OS. Swift (Computer program language) Mobile computing / Programming Programming languages (Electronic computers) Application software / Development Swift 2.0 (DE-588)1078025495 gnd |
subject_GND | (DE-588)1078025495 |
title | Learning Swift 2 programming |
title_auth | Learning Swift 2 programming |
title_exact_search | Learning Swift 2 programming |
title_full | Learning Swift 2 programming Jacob Schatz |
title_fullStr | Learning Swift 2 programming Jacob Schatz |
title_full_unstemmed | Learning Swift 2 programming Jacob Schatz |
title_short | Learning Swift 2 programming |
title_sort | learning swift 2 programming |
topic | iOS (Electronic resource) iPhone OS. Swift (Computer program language) Mobile computing / Programming Programming languages (Electronic computers) Application software / Development Swift 2.0 (DE-588)1078025495 gnd |
topic_facet | iOS (Electronic resource) iPhone OS. Swift (Computer program language) Mobile computing / Programming Programming languages (Electronic computers) Application software / Development Swift 2.0 |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=028778032&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT schatzjacob learningswift2programming |