Cargando…

IOS 14 Programming Fundamentals with Swift /

Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 12 IDE, Cocoa Touch, and the latest version of Apple's acclaimed programming language, Swift 5.3. With this thoroughly updated guide, you'll learn the Swift language, understand Apple's Xcode de...

Descripción completa

Detalles Bibliográficos
Autor principal: Neuburg, Matt (Autor)
Autor Corporativo: Safari, an O'Reilly Media Company
Formato: Electrónico eBook
Idioma:Inglés
Publicado: O'Reilly Media, Inc., 2020.
Edición:1st edition.
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover
  • Copyright
  • Table of Contents
  • Preface
  • The Scope of This Book
  • From the Preface to the First Edition (Programming iOS 4)
  • Versions
  • Acknowledgments
  • Conventions Used in This Book
  • Using Code Examples
  • O'Reilly Online Learning
  • How to Contact Us
  • Part I. Language
  • Chapter 1. The Architecture of Swift
  • Ground of Being
  • Everything Is an Object?
  • Three Flavors of Object Type
  • Variables
  • Functions
  • The Structure of a Swift File
  • Scope and Lifetime
  • Object Members
  • Namespaces
  • Modules
  • Instances
  • Why Instances?
  • The Keyword self
  • Privacy
  • Design
  • Chapter 2. Functions
  • Function Parameters and Return Value
  • Void Return Type and Parameters
  • Function Signature
  • External Parameter Names
  • Overloading
  • Default Parameter Values
  • Variadic Parameters
  • Ignored Parameters
  • Modifiable Parameters
  • Calling Objective-C with Modifiable Parameters
  • Called by Objective-C with Modifiable Parameters
  • Reference Type Modifiable Parameters
  • Function in Function
  • Recursion
  • Function as Value
  • Anonymous Functions
  • Using Anonymous Functions Inline
  • Anonymous Function Abbreviated Syntax
  • Define-and-Call
  • Closures
  • How Closures Improve Code
  • Function Returning Function
  • Closure Setting a Captured Variable
  • Closure Preserving Captured Environment
  • Escaping Closures
  • Curried Functions
  • Function References and Selectors
  • Function Reference Scope
  • Selectors
  • Chapter 3. Variables and Simple Types
  • Variable Scope and Lifetime
  • Variable Declaration
  • Computed Variable Initialization
  • Computed Variables
  • Computed Properties
  • Property Wrappers
  • Setter Observers
  • Lazy Initialization
  • Singleton
  • Lazy Initialization of Instance Properties
  • Built-In Simple Types
  • Bool
  • Numbers
  • String
  • Character and String Index
  • Range
  • Tuple
  • Optional
  • Chapter 4. Object Types
  • Object Type Declarations and Features
  • Initializers
  • Properties
  • Methods
  • Subscripts
  • Nested Object Types
  • Enums
  • Raw Values
  • Associated Values
  • Enum Case Iteration
  • Enum Initializers
  • Enum Properties
  • Enum Methods
  • Why Enums?
  • Structs
  • Struct Initializers
  • Struct Properties
  • Struct Methods
  • Struct as Namespace
  • Classes
  • Value Types and Reference Types
  • Subclass and Superclass
  • Class Initializers
  • Class Deinitializer
  • Class Properties
  • Static/Class Members
  • Polymorphism
  • Casting
  • Casting Down
  • Type Testing and Casting Down Safely
  • Type Testing and Casting Optionals
  • Bridging to Objective-C
  • Type References
  • From Instance to Type
  • From self to Type
  • Type as Value
  • Summary of Type Terminology
  • Comparing Types
  • Protocols
  • Why Protocols?
  • Adopting a Library Protocol
  • Protocol Type Testing and Casting
  • Declaring a Protocol
  • Protocol Composition
  • Class Protocols
  • Optional Protocol Members
  • Implicitly Required Initializers
  • Expressible by Literal
  • Generics
  • Generic Declarations