Muutke küpsiste eelistusi

E-raamat: Learn Swift on the Mac: For OS X and iOS

  • Formaat: PDF+DRM
  • Ilmumisaeg: 06-Apr-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484203767
  • Formaat - PDF+DRM
  • Hind: 28,39 €*
  • * 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: 06-Apr-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484203767

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. 

There's a new language in town. Swift is Apple's new, native, fast, and easy to learn programming language for iOS and OS X app development. It's their "Objective-C without the C". If you are an iOS developer or planning to become one, learning Swift is your #1 priority, and Learn Swift on the Mac tells you everything you need to get up to speed, well, swiftly.

You'll start with the Swift Playground and an introduction to object-oriented programming so you can immediately see Swift in action. You then learn about all of the key language features like functions and closures, classes, methods, extensions, and how Swift works just as well as Objective-C when it comes to easy memory management with ARC.

Finally you'll learn how to use Swift alongside Objective-C as well as with Core Data, and you'll learn how to put all of the pieces together with a health app using Apple's new HealthKit framework.

About the Author xvii
About the Technical Reviewer xix
Acknowledgments xxi
Introduction xxiii
Chapter 1 Hello Swift 1(14)
Improvements over Objective-C
2(1)
Type Inference
2(1)
Type Safety
2(1)
Control Flow
2(1)
Optionals
2(1)
Strings
2(1)
Unicode
3(1)
Other Improvements
3(1)
Requirements
3(1)
Getting Xcode
3(2)
Quick Tour of Xcode
5(4)
Quick Tour of Swift
9(4)
Basic Types
9(1)
Aggregate Types
10(1)
Control Flow
10(1)
Functions
11(1)
Objects
11(1)
Generics
12(1)
Getting the Sample Code
12(1)
Summary
13(2)
Chapter 2 The Swift Playground in Xcode 6 15(14)
Getting Started with a Playgorund
15(5)
Custom QuickLook Plugins
20(1)
XCShowView
20(1)
XCCaptureValue
21(1)
XCPSetExecutionShouldContinuelndefinitely
21(1)
Custom Modules for Playground
21(6)
Importing Your Code
22(5)
Summary
27(2)
Chapter 3 Accessing Swift's Compiler and Interpreter: REPL 29(4)
What is REPL?
29(2)
LLDB and the Swift REPL
31(1)
Summary
32(1)
Chapter 4 Introduction to Object-Oriented Programming 33(10)
The Concept Behind 00P
34(1)
Indirection and Variables
34(1)
Procedural Programming
35(3)
Objected Oriented Implementation
38(4)
Summary
42(1)
Chapter 5 Constants, Variables, and Data Types 43(12)
Type Annotation
44(1)
Identifiers
44(1)
Console Output
44(1)
Integers
45(1)
Floating-Point Numbers
45(1)
Numeric Literals
45(1)
Conversion
46(1)
Booleans
47(1)
Characters
47(1)
Strings
47(2)
Collection Types
49(5)
Arrays
49(2)
Dictionaries
51(2)
Tuples
53(1)
Optionals
53(1)
Summary
54(1)
Chapter 6 Operators 55(12)
Syntax
55(1)
Notation
55(1)
Precedence
56(1)
Associativity
56(1)
Swift Operators
56(8)
Prefix
56(1)
Infix
56(7)
Postfix
63(1)
Overloading Operators
64(2)
Unary Operator
64(1)
Binary Operators
65(1)
Summary
66(1)
Chapter 7 Flow Control 67(14)
For Loops
67(3)
For-in
67(2)
For-conditional-Increment
69(1)
While
70(1)
Do-while
71(1)
Branch Statements
71(1)
Switch
72(7)
Range Matching
74(2)
Control Transfer Statements
76(3)
Summary
79(2)
Chapter 8 Functions and Closures 81(12)
Defining Functions
81(1)
Calling a Function
82(1)
Parameter Names
83(1)
Default Values
84(1)
Variadic Parameters
85(1)
Mutablity of Parameters
85(1)
In-Out Parameters
86(1)
Function Types
86(1)
Functions as Parameters
87(1)
Functions as Return Values
87(1)
Nested Functions
88(1)
Closures
88(1)
Closure Syntax
89(1)
Inferring Types from Context
90(1)
Implicit Returns
90(1)
Shorthand Argument Names
90(1)
Trailing Closures
90(1)
Capturing Values
91(1)
Summary
92(1)
Chapter 9 Classes and Structures 93(10)
Commonality
93(1)
Definition
94(1)
Accessing Properties
95(1)
Value Types vs. Reference Types
95(2)
Choosing Between Classes or Structures
97(1)
Properties
97(1)
Stored Properties
97(1)
Lazy Stored Properties
98(1)
Computed Properties
99(1)
Property Observers
100(1)
Type Properties
101(1)
Summary
102(1)
Chapter 10 Methods 103(6)
Instance Methods
103(2)
Modifying Type State
105(1)
Type Methods
106(1)
Summary
107(2)
Chapter 11 Access Control 109(8)
Modules and Source Files
109(1)
Access Levels
110(1)
Syntax
110(1)
Classes
111(1)
Subclassing
112(1)
Class Members
112(1)
Functions
112(1)
Enumerations
113(1)
Nested Types
113(1)
Getters and Setters
114(1)
Initializers
114(1)
Protocols
114(1)
Extensions
115(1)
Typealias
115(1)
Summary
115(2)
Chapter 12 Inheritance 117(6)
Terminology
117(1)
Defining a Base Class
118(1)
Subclassing
118(2)
Properties
120(1)
Preventing Overriding
121(1)
Summary
121(2)
Chapter 13 Extensions 123(6)
Creating an Extension
124(1)
Computed Properties
125(1)
Initializers
125(1)
Methods
126(1)
Mutating Methods
126(1)
Subscripts
127(1)
Nested Types
127(1)
Summary
128(1)
Chapter 14 Memory Management and ARC 129(12)
Object Life Cycle
130(1)
Reference Counting
130(1)
Object Ownership
130(1)
ARC
131(1)
Strong Reference Cycles
132(1)
Resolving Strong Reference Cycles
133(1)
Weak References
134(1)
Unowned Reference
135(2)
Strong Reference Cycles and Closures
137(2)
Summary
139(2)
Chapter 15 Protocols 141(8)
Syntax
141(3)
Properties
142(2)
Methods
144(1)
Initializers
144(4)
Protocols as Types
145(1)
Delegation
146(1)
Conformance with Extensions
147(1)
Protocols and Collection Types
147(1)
Protocol Inheritance
147(1)
Protocol Composition
148(1)
Summary
148(1)
Chapter 16 Generics 149(8)
Generic Functions
149(2)
Generic Types
151(2)
Associated Types
153(3)
Summary
156(1)
Chapter 17 Expressions 157(8)
Primary Expressions
157(1)
Prefix Expressions
158(1)
Postfix Expressions
158(1)
Binary Expressions
158(1)
Assignment Operator
159(1)
Ternary Conditional
159(1)
Casting Operators
160(1)
Self and Super
160(1)
Closures and Functions
161(1)
Closures
161(1)
Function Calls
162(1)
Implicit Member Expression
163(1)
Optionals
163(1)
Summary
164(1)
Chapter 18 Interoperability with Objective-C 165(12)
Import Process
166(1)
Interoperability
167(1)
Object Initialization
168(1)
Failable Initializers
169(1)
Properties
169(1)
Methods
170(1)
Blocks
170(1)
Object Comparison
171(1)
Type Compatibility
171(2)
Dynamic Dispatch
173(1)
Selectors
173(1)
Property Attributes
173(1)
Namespaces and Class
174(1)
Cocoa Data Types
174(1)
Foundation Functions
174(1)
Core Foundation
175(1)
Interacting with C
175(1)
Summary
176(1)
Chapter 19 Mix and Match 177(8)
Importing Objective-C into Swift in the Same App Target
178(2)
Importing Swift into Objective-C in the Same App Target
180(1)
Importing Objective-C into Swift in the Same Framework Target
181(1)
Importing Swift into Objective-C in the Same Framework Target
181(1)
Importing Frameworks
182(1)
Using Swift in Objective-C
182(1)
Summary
183(2)
Chapter 20 Working with Core Data 185(18)
NSManagedObjectContext
186(1)
NSManagedObject
186(1)
NSManagedObjectModel
186(1)
NSPersistentStoreCoordinator
186(1)
NSFetchRequest
186(1)
NSPredicate
186(2)
Creating An Application
187(1)
Defining Data Objects
188(10)
Adding an Object Editor
191(7)
Showing the Editor
198(1)
Entity Classes
199(3)
Summary
202(1)
Chapter 21 Consuming RESTful Services 203(8)
HTTP Methods
203(1)
Being Stateless
204(1)
Endpoints
204(1)
Data Formats
204(1)
Network Access
204(6)
Summary
210(1)
Chapter 22 Developing a Swift-Based Application 211(26)
The Project
211(24)
Creating a Project
212(11)
Creating A Sample
223(11)
Detail View
234(1)
Summary
235(2)
Index 237
Waqar Malik is a UNIX nerd and Macintosh fan, and has been for long time. He has been helping developers with Cocoa and UNIX since the early days of OS X, and now with iOS. He consults, and writes Cocoa apps for his own company, Crimson Research.