Swift Pocket Reference

Programming for iOS and OS X

Programming for iOS and OS X

Publisher: O’Reilly Media
Final Release Date: December 2014
Pages: 186

Description

Get quick answers for developing and debugging applications with Swift, Apple’s multi-paradigm programming language. This pocket reference is the perfect on-the-job tool for learning Swift’s modern language features, including type safety, generics, type inference, closures, tuples, automatic memory management, and support for Unicode.

Designed to work with Cocoa and Cocoa Touch, Swift can be used in tandem with Objective-C, and either of these languages can call APIs implemented in the other. Swift is still evolving, but it’s clear that Apple sees it as the future language of choice for iOS and OS X software development.

Topics include:

  • Swift’s Run-Eval-Print-Loop (REPL) and interactive playgrounds
  • Supported data types, such as strings, arrays, and dictionaries
  • Variables and constants
  • Program flow: loops and conditional execution
  • Classes, structures, enumerations, functions, and protocols
  • Closures: similar to blocks in Objective-C and lambdas in C#
  • Optionals: values that can explicitly have no value
  • Operators, operator overloading, and custom operators
  • Access control: restricting access to types, methods, and properties
  • Built-in global functions and their parameter requirements

Table of Contents

  1. Getting Started with Swift
  2. A Taste of Swift
  3. Basic Language Features
  4. Types
  5. Variables and Constants
  6. Tuples
  7. Operators
  8. Strings and Characters
  9. Arrays
  10. Dictionaries
  11. Functions
  12. Closures
  13. Optionals
  14. Program Flow
  15. Classes
  16. Structures
  17. Enumerations
  18. Access Control
  19. Extensions
  20. Checking and Casting Types
  21. Protocols
  22. Memory Management
  23. Generics
  24. Operator Overloading
  25. Ranges, Intervals, and Strides
  26. Global Functions

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s