
Swift Pocket Reference
Beschreibung
Weitere Details
Weitere Ausgaben
Inhalt
- Intro
- 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
- The Swift REPL
- Swift as a Scripting Language
- Swift Playgrounds
- A Taste of Swift
- Basic Language Features
- Comments
- Semicolons
- Whitespace
- 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 Constants
- Extracting 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
- Arrays
- Accessing Array Elements
- Array Properties
- Modifying a Mutable Array
- Iterating Over Arrays
- Array Algorithms
- Dictionaries
- Accessing Dictionary Elements
- Dictionary Properties
- Modifying a Mutable Dictionary
- Iterating Over Dictionaries
- Functions
- Parameter Types
- Returning Optional Values
- Returning Multiple Values by using Tuples
- Local and External Parameter Names
- Default 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
- 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 Inheritance
- Deinitialization
- Structures
- Properties in Structures
- Methods in Structures
- Mutating Methods
- Type Methods for Structures
- Initializers in Structures
- Enumerations
- Raw Member Values
- Associated Values
- Methods in Enumerations
- Type Methods for 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
- Protocols
- Required Properties
- Required Methods
- Optional Methods and Properties
- Adopting Protocols with Extensions
- Inheritance and Protocols
- Using a Protocol as a Type
- Checking Protocol Conformance
- Built-In Protocols
- Memory Management
- How Reference Counting Works
- Retain Cycles and Strong References
- Weak References
- Unowned References
- Retain Cycles and Closures
- Generics
- Generic Functions
- Generic Types
- Constraining Types
- Generic Protocols
- Operator Overloading
- Overloading Unary Operators
- Custom Operators
- Custom Operator Precedence
- Ranges, Intervals, and Strides
- Ranges
- Intervals
- Strides
- Global Functions
- Index
Systemvoraussetzungen
Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.