Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title Page
Introduction
About This Book
Foolish Assumptions
Icons Used in This Book
Beyond the Book
Where to Go from Here
Part I: Getting Started with Swift
Chapter 1: Setting Up an Xcode Swift Project
Looking Ahead to the End
Working with Swift
Getting the Developer Tools
Setting Up Your Mac
Planning Your Environment
Getting Started with Swift
Exploring Your Project
Chapter 2: Playing in the Playground
Creating a Playground
Using a Playground
Using the Timeline in the Playground
Chapter 3: Using the Xcode Editing Tools
Getting Started with Editing Tools
Completing Code with Code Completion
Using Fix-It to Correct Code
Folding and Unfolding Code
Using Code Snippets
Chapter 4: Creating a Swift App
Double-Checking Your Environment
Creating the Project
Testing the Template
Setting the Location for iOS Simulator
Adding the Map to the Storyboard and Project
Testing the App
Adding Swift Code to Locatapp
Testing the App with Location Data
Part II: Introducing Actions
Chapter 5: Operating on Data
Classifying Operators
Answering Syntax Questions with Playgrounds
Clearing the Way for Operators
Assigning Values with Assignment Operators
Counting On Arithmetic Operators for Math
Addition
Multiplication
Division
Incrementing and decrementing numeric values
Combining operators
Comparing values
Choosing and Checking Values with Logical Operators
Chapter 6: Using Swift Types
Understanding Types and Type Safety
Swift Standard Library Types
Specifying Variable or Expression Types with Type Annotations
Dealing with Tuples
Working with Optional Types
Using Generic Types
Chapter 7: Collecting Objects
Playing by Swift Collection Rules
Organizing Data Sequentially with Arrays
Organizing Data Logically with Dictionaries
Chapter 8: Controlling the Flow
Looping through Code
Using Conditions
Transferring Control
Using Assertions
Chapter 9: Functioning Successfully
Setting the Stage for the Social Media Location App
Exploring the Functions in Locatapp
Understanding the Locatapp Architecture
Uncovering the Function Features
Adding Location Support
Part III: Putting Expressions Together
Chapter 10: Expressing Yourself
Surveying the Types of Swift Expressions
Understanding Lazy Loading
Chapter 11: Declaring the Symbols
Navigating through Symbols with the Symbol Navigator
Preventing Disasters with Assertions
Patterns
Ranges
Chapter 12: Initializing and Deinitializing Data
Understanding Initialization
Performing Initialization
Understanding Deinitialization
Part IV: Using Components and Subcomponents
Chapter 13: Expanding Objects with Extensions
Working with a Swift Extension
Using Swift Extensions with a Built-In Class
Chapter 14: Managing Access Control for Your Objects
Introducing Access Control Levels
Using Swift Access Control Terminology
Chapter 15: Building Classes, Structures, and Enumerations
Exploring Classes, Structures, and Enumerations
Declaring a Simple Class
Exploring a Swift Class, Structure, or Enumeration File
Chapter 16: Using Properties, Variables, Outlets, and Actions
Understanding Properties and Variables
Encapsulating Data for Good Design and Maintainability
Understanding Properties and Variables in Locatapp
Declaring Outlets and Actions
Chapter 17: Working with Enumerations to Consolidate Values
Using Enumerations with Swift
Understanding Traditional C Structures and Enumerations
Exploring Swift Enumerations
Chapter 18: Using Protocols to Provide Templates for Functionality
Understanding Protocols
Experimenting with Protocols
Exploring Protocols and a UITableViewController
Chapter 19: Mixing Objective-C and Swift
Comparing Frameworks in Objective-C and Swift
Calling an Objective-C Method in Objective-C within Swift to Set a Pin on the Map
Bridging between Objective-C and Swift
Part V: The Part of Tens
Chapter 20: Ten Swift Features That Aren’t in Objective-C
Using Playgrounds to Explore Code and Syntax
Using Tuples
Using Ranges to Save Code
Taking Advantage of Strict Typing and Type Safety
Initializing Your Variables and Constants
Understanding Optional Types
Looking at Frameworks for Your Own Code
Including Annotations and Attributes in Declarations
Deinitializing Variables Where Necessary
Use Patterns to Simplify Your Code
Chapter 21: Ten Swift Features That Are Not in C
Strong Typing
Libraries Extend C
Switch Statements Fall through Cases in C
C Is an International Standard
Swift Is Tightly Linked to the Cocoa and Cocoa Touch Frameworks
Swift Includes Memory Management
Swift Is Designed to Function in a Multi-Threaded Environment
Types Can Be Created Easily in Swift
Swift Has Its Own IDE and Compiler
Types Can Be Classes, Structures, or Enumerations
Chapter 22: Ten Objective-C Features That Aren’t in Swift
Saying Goodbye to Header (.h) Files
Saying Farewell to Dangling Pointers (Almost Always)
Forgetting About Uninitialized Variables and Properties
Exploiting a Common Superclass Like NSObject
Managing Type Casting
Preferring Closures to Blocks
Getting Rid of Legacy Memory Management
Replacing Property Decorators
Using Swift Style to Access Class Properties
Clarifying Swift Access Control
About the Author
Author’s Acknowledgments
Cheat Sheet
Advertisement Page
Connect with Dummies
End User License Agreement
← Prev
Back
Next →
← Prev
Back
Next →