Cargando…

Mastering Swift 2 : dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and OS X applications /

Dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and osX applications About This Book Harness the latest and most advanced features of Swift 2 to develop quality iOS and OSX applications Comprehensive coverage of al...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Hoffman, Jon (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Edición:Second edition.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Taking the First Steps with Swift ; What is Swift?; Swift features; Playgrounds; Getting started with Playgrounds; iOS and OS X Playgrounds; Showing images in a Playground; Creating and displaying graphs in Playgrounds; What Playgrounds are not; Swift language syntax; Comments; Semicolons; Parentheses; Curly braces; An assignment operator does not return a value; Spaces are optional in conditional and assignment statements; Hello World; Summary.
  • Chapter 2: Learning about Variables, Constants, Strings, and Operators Constants and variables; Defining constants and variables; Type safety; Type inference; Explicit types; Numeric types; Integers; Floating-point; The Boolean type; The string type; Optional variables; Enumerations; Operators; The assignment operator; Comparison operators; Arithmetic operators; The remainder operator; Increment and decrement operators; Compound assignment operators; The ternary conditional operator; The logical NOT operator; The logical AND operator; The logical OR operator; Summary.
  • Chapter 3: Using Collections and Cocoa Data Types Swift collection types; Mutability; Arrays; Creating and initializing arrays; Accessing the array elements; Counting the elements of an array; Is the array empty?; Appending to an array; Inserting a value into an array; Replacing elements in an array; Removing elements from an array; Adding two arrays; Reversing an array; Retrieving a subarray from an array; Making bulk changes to an array; Algorithms for arrays; sortInPlace; sort; filter; map; forEach; Iterating over an array; Dictionaries; Creating and initializing dictionaries.
  • Accessing dictionary valuesCounting key or values in a dictionary; Is the dictionary empty?; Updating the value of a key; Adding a key-value pair; Removing a key-value pair; Set; Initializing a set; Inserting items into a set; The number of items in a set; Checking whether a set contains an item; Iterating over a set; Removing items in a set; Set operations; Tuples; Using Cocoa data types; NSNumber; NSString; NSArray; NSDictionary; Foundation data types; Summary; Chapter 4: Control Flow and Functions ; What we have learned so far; Curly brackets; Parentheses; Control flow.
  • Conditional statementsThe if statement; Conditional code execution with the if-else statement; The for loops; Using the for loop variant; Using the for-in loop variant; The while loop; Using the while loop; Using the repeat-while loop; The switch statement; Using case and where statements with conditional statements; Filtering with the where statement; Filtering with the for-case statement; Using the if-case statement; Control transfer statements; The continue statement; The break statement; The fallthrough statement; The guard statement; Functions; Using a single parameter function.