Muutke küpsiste eelistusi

E-raamat: Swift Translation Guide for Objective-C: Develop and Design

  • Formaat: PDF+DRM
  • Ilmumisaeg: 28-Nov-2014
  • Kirjastus: Peachpit Press Publications
  • Keel: eng
  • ISBN-13: 9780133961324
Teised raamatud teemal:
  • Formaat - PDF+DRM
  • Hind: 14,61 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 28-Nov-2014
  • Kirjastus: Peachpit Press Publications
  • Keel: eng
  • ISBN-13: 9780133961324
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

A guide to the Swift programming language for experienced Objective-C developers covers the language basics, including types, syntax, variables, strings, and classes, and explores how to introduce Swift into existing Objective-C projects.

APPLE DESIGNED SWIFT SO YOU wouldn’t need previous Apple programming experience, but many Apple developers will want to take advantage of Swift in existing projects—as well as start writing projects from scratch. In this compact, to-the-point guide, author and iOS developer Maurice Kelly steps existing Objective-C developers through the basics of the Swift language—including types, syntax, variables, strings, and classes—and explores how to use Swift with existing projects and create new apps written completely in Swift.

If you are an Apple developer, this book will quickly give you a solid foundation for writing Swift apps.

THIS BOOK INCLUDES:

  • Detailed instruction and clear examples
  • Real-world guidance and advice
  • Detailed directions for using Swift’s playgrounds to experiment with your code with a minimum of hassle
  • Emphasis on the core components of the language


COMPANION WEBSITE:

http://swift-translation.guide/ includes additional resources.

A History xii
Welcome to Swift xiv
Chapter 1 Creating Swift Projects
2(6)
Your First Swift Project
4(1)
Fundamental Differences
5(1)
No More Header Files
5(1)
Main Is Missing
5(1)
Semicolons?
6(1)
Using Swift And Objective-C Together
6(1)
Wrapping Up
7(1)
Chapter 2 Playgrounds And The Swift Repl
8(10)
Swift Playgrounds
10(1)
A Quick Tour Of Swift Playgrounds
10(4)
What Can You Do With Playgrounds?
14(1)
Creating Your Own Playgrounds
14(1)
The Swift Repl
15(1)
How To Use The Repl
15(1)
Possibilities
16(1)
Limitations
17(1)
Wrapping Up
17(1)
Chapter 3 Language Basics
18(22)
Types
20(1)
Primitive Types
20(2)
Strings
22(1)
Functions
22(1)
Blocks
22(1)
Tuples
22(1)
Classes, Structs, And Enumerations
23(1)
Collections
24(1)
Variable Declarations
24(1)
Var And Let
24(1)
Mutability
25(1)
Type Inference
26(1)
Syntax
27(1)
Semicolons
27(1)
Where Is @?
27(1)
No Longer Hip To Be Square
28(1)
Control Blocks
28(1)
The Post-Preprocessor Age
29(1)
Comments
30(1)
Operators
31(1)
Identical
32(1)
Different
32(3)
New
35(3)
Tuples
38(1)
Creating And Using Tuples
38(1)
Reusing Tuples
39(1)
Wrapping Up
39(1)
Chapter 4 Control Structures
40(16)
General Changes
42(1)
Parentheses Are Optional
42(1)
Braces Are Mandatory
42(1)
Boolean Conditions
43(1)
Loops
44(1)
For And For-In
44(1)
While And Do-While
45(1)
Conditionals
46(1)
If
46(1)
Switch
46(1)
To Integers And Beyond!
47(1)
Strings
47(1)
Enumerations
48(1)
Ranges
48(1)
Pattern Matching
49(5)
Safety Features
54(1)
Wrapping Up
55(1)
Chapter 5 Optionals
56(8)
Why Do We Need Optionals?
58(1)
Declaring An Optional
58(1)
Using An Optional
59(1)
Unwrapping
59(1)
Optional Binding
60(1)
Implicit Unwrapping
61(1)
Optional Chaining
61(1)
Things To Watch Out For
62(1)
Nil Coalescing Operator
63(1)
No Need To Unwrap
63(1)
Wrapping Up
63(1)
Chapter 6 Functions
64(16)
Calling Functions
66(1)
Defining Functions
67(1)
Parameter Naming
67(2)
Default Parameter Values
69(1)
Return Values
70(1)
Modifying Function Parameters
71(2)
Variadic Parameters
73(2)
Function Scopes
75(1)
Global Scope
75(1)
Scope Of Methods
75(1)
Nested Functions
75(1)
Using Functions
76(1)
Function Types
76(2)
Using Functions As Parameter Values
78(1)
Using Functions As Return Values
78(1)
Wrapping Up
79(1)
Chapter 7 Blocks And Closures
80(8)
Defining Closures
82(1)
Creating The Definition
82(1)
Assigning To Variables
83(1)
Receiving As Function Parameters
83(1)
Creating Type Aliases
84(1)
Executing Closures
84(1)
Optimizing Closures
85(1)
Implicit Returns
85(1)
Type Inference
85(1)
Shorthand Argument Names
85(1)
Trailing Closure Syntax
86(1)
Operator Functions
86(1)
Capturing Values
87(1)
Wrapping Up
87(1)
Chapter 8 Strings
88(12)
Constructing Strings
90(1)
Manipulating Strings
91(1)
Examining String Values
91(1)
Comparing Strings
92(1)
Modifying String Content
93(2)
Interacting With Nsstring
95(1)
Substrings
95(1)
Conversions
96(1)
Path Modification And Url Methods
96(1)
Explicitly Creating An Nsstring
96(1)
Unicode
97(1)
Wrapping Up
98(2)
Chapter 9 Classes
100(16)
Creating Classes
102(1)
Methods
102(1)
Properties
103(1)
Stored Properties
103(4)
Read-Only Properties
107(1)
Think About Your Self
108(1)
Initializers
108(1)
Creating Initializers
109(1)
Using Convenience And Designated Initializers
109(1)
Deinitializing
110(1)
Inheritance
111(1)
Overriding A Method
111(1)
Calling To The Superclass
112(1)
Access Control
112(1)
Private
113(1)
Internal
114(1)
Public
114(1)
Subscripting
114(1)
Wrapping Up
115(1)
Chapter 10 Structures And Enumerations
116(12)
Structures
118(1)
Defining A Structure
118(2)
Modifying A Structure
120(2)
Enumerations
122(1)
Creating Enumerations
122(1)
Using Enumerations
123(1)
Associated Values
124(2)
Methods And Computed Properties
126(1)
Nesting Types
126(1)
Wrapping Up
127(1)
Chapter 11 Memory Management
128(6)
Swift Memory Management
130(1)
When To Use Weak And Unowned References
131(1)
Closures
132(1)
Wrapping Up
133(1)
Chapter 12 Collections
134(12)
General Comparisons
136(1)
Arrays
136(1)
Creating Arrays
137(1)
Reading Array Contents
137(1)
Manipulating Arrays
138(3)
Dictionaries
141(1)
Creating Dictionaries
141(1)
Reading From Dictionaries
142(1)
Manipulating Dictionaries
143(1)
Mutability
144(1)
Wrapping Up
145(1)
Chapter 13 Protocols, Extensions, And Generics
146(10)
Protocols
148(1)
Creating
148(2)
Conforming To Protocols
150(1)
Extensions
151(1)
Generics
152(1)
Generic Functions
152(1)
Generic Types
153(1)
Wrapping Up
154(2)
Chapter 14 There Isn't A Word For That
156(8)
Only In Objective-C
158(1)
Exception Handling
158(1)
Kvo
158(1)
Reflection
159(1)
Dynamic Dispatch
159(1)
New To Swift
160(1)
Namespaces
160(1)
Custom Operators
160(1)
Filter, Map, And Reduce
161(2)
Wrapping Up
163(1)
Chapter 15 Interacting With Objective-C
164(8)
Introducing Swift To Objective-C
166(1)
Adding Swift Files
166(1)
Using Swift Code In Objective-C
167(1)
Using Objective-C With Swift
168(1)
Adding Objective-C Files
168(1)
Syntax Changes
169(1)
Type Changes
169(1)
Working With C Code
170(1)
Frameworks
171(1)
Wrapping Up
171(1)
Index 172
Maurice Kelly has been a software engineer since leaving university in 2001. After spending a decade working on carrier-grade server software in C, C++, and Java, he decided to take a career departure and switched to developing iOS and OS X software. As well as being an eager consumer of all things tech, he has a passion for listening to and creating music. He lives with his wife and children just outside Dromara, a small village in the small country of Northern Ireland.