Swift pocket reference
Get quick answers for developing and debugging applications with Swift, Apple’s multi-paradigm programming language. Updated to cover the latest features in Swift 2.0, this pocket reference is the perfect on-the-job tool for learning Swift’s modern language features, including type safety, generics,...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly
2015.
|
Edición: | 2nd ed |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629980706719 |
Tabla de Contenidos:
- Copyright; Table of Contents; Swift Pocket Reference; Introduction; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Getting Started with Swift 2; The Swift REPL; Swift as a Scripting Language; Swift Playgrounds; A Taste of Swift; Basic Language Features; Comments; Semicolons; Whitespace; Naming Conventions; Importing Code from Other Modules; Types; Specific Integer Types; Numeric Literals; Character and String Literals; Type Aliases; Nested Types; Other Types; Variables and Constants; Computed Variables; Variable Observers; Tuples
- Tuple Variables and ConstantsExtracting Tuple Components; Naming Tuple Components; Using Type Aliases with Tuples; Tuples as Return Types; Operators; No Implicit Type Conversion; Arithmetic Operators; Bitwise Operators; Assignment Operators; Comparison Operators; Logical Operators; Overflow Operators; Type Casting Operators; Range Operators; Ternary Conditional Operator; Operator Precedence; Strings and Characters; String Properties; Comparing Strings; Escaped Characters in Strings; String Interpolation; Converting Strings to Numeric Types; Character-Level Access in Strings
- Local and External Parameter NamesDefault Parameter Values; Variadic Parameters; Function Types; Closures; Automatic Argument Names; Trailing Closures; Capturing Values; Capturing Values by Reference; Optionals; Unwrapping Optionals; Implicitly Unwrapped Optionals; Optional Binding; Optional Chaining; Program Flow; Loops; Conditional Execution; Error Handling; Classes; Defining a Base Class; Instances; Properties; Methods; Subscripts; Member Protection; Inheritance: Deriving One Class from Another; Overriding Superclass Entities; Preventing Overrides and Subclassing; Initialization
- Initialization and InheritanceDeinitialization; Structures; Properties in Structures; Methods in Structures; Type Methods for Structures; Initializers in Structures; Enumerations; Raw Member Values; Associated Values; Methods in Enumerations; Type Methods for Enumerations; Recursive Enumerations; Failable Initializers in Enumerations; Access Control; Specifying Access Control Levels; Default Access Control Levels; Extensions; Computed Property Extensions; Initializer Extensions; Method Extensions; Subscript Extensions; Checking and Casting Types; Any and AnyObject; Checking Types
- Downcasting Types