Learn Swift 2 on the Mac: For OS X and iOS, 2nd Edition
- Length: 232 pages
- Edition: 2nd ed. 2015
- Language: English
- Publisher: Apress
- Publication Date: 2015-12-18
- ISBN-10: 1484216288
- ISBN-13: 9781484216286
- Sales Rank: #6057836 (See Top 100 Books)
If you are an iOS developer or planning to become one, learning Swift 2 is your #1 priority, and this book 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 HealthKit framework.
Table of Contents
Chapter 1: Hello Swift
Chapter 2: The Swift Playground in Xcode
Chapter 3: Accessing Swift’s Compiler and Interpreter: REPL
Chapter 4: Constants, Variables, and Data Types
Chapter 5: Expressions
Chapter 6: Operators
Chapter 7: Flow Control
Chapter 8: Functions
Chapter 9: Closures
Chapter 10: Enumerations
Chapter 11: Classes and Structures
Chapter 12: Methods
Chapter 13: Inheritance
Chapter 14: Extensions
Chapter 15: Memory Management and ARC
Chapter 16: Error Handling
Chapter 17: Protocols
Chapter 18: Generics
Chapter 19: Access Control
Chapter 20: Interoperability with Objective-C
Chapter 21: Working with Core Data
Chapter 22: Consuming RESTful Services