Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Swift 2 Cookbook
Table of Contents
Swift 2 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Xcode and Swift
Introduction
Installing Xcode from the App Store
Getting ready
How to do it…
How it works…
There's more…
Downloading the Xcode image
Getting ready
How to do it…
How it works…
There's more…
Starting a Swift project
Getting ready
How to do it…
How it works…
There's more…
Using the Swift project options
Getting ready
How to do it…
How it works…
There's more…
Creating conditional code
Getting ready
How to do it…
How it works…
There's more…
Migrating an existing project to Swift 2.0
Getting ready
How to do it…
How it works…
There's more…
Adding a developer account
Getting ready
How to do it…
How it works…
There's more…
Compiling from the command line
Getting ready
How to do it…
How it works…
There's more…
Using Swift as an interpreter
Getting ready
How to do it…
How it works…
There's more…
Adding a control version system to an existing project
Getting ready
How to do it…
How it works…
There's more…
See also
2. Standard Library and Collections
Introduction
Creating HTML manually
Getting ready
How to do it…
How it works…
There's more...
Printing your object description
How to do it…
How it works...
There's more...
Quizzing the user
Getting ready
How to do it...
How it works…
There's more…
Searching for perfect numbers
Getting ready
How to do it…
How it works…
Sorting an array of products
Getting ready
How to do it…
How it works…
There's more...
Finding the way out
Getting ready
How to do it…
How it works…
There's more…
Creating your own set
Getting ready
How to do it…
How it works…
There's more…
Organizing a dinner room
Getting ready
How to do it…
How it works...
There's more…
3. Using Structs and Generics
Introduction
Creating an exam app
Getting ready
How to do it…
How it works…
There's more…
Checking for the right answer
Getting ready
How to do it…
How it works…
There's more…
Avoiding the copying of structs
Getting ready
How to do it…
How it works…
Creating a generic array initializer
Getting ready
How to do it…
How it works…
There's more…
Creating a priority list
Getting ready
How to do it…
How it works…
There's more…
Creating a protocol for the priority queue
Getting ready
How to do it…
How it works…
There's more…
4. Design Patterns with Swift
Introduction
Writing into a log file
Getting ready
How to do it…
How it works…
There's more…
Creating a factory of musical notes
Getting ready
How to do it…
How it works…
There's more…
Simulating a home automation
Getting ready
How to do it…
How it works…
There's more…
Delivering some pizzas
Getting ready
How to do it…
How it works…
See also
Protocol-oriented programming
Getting ready
How to do it…
How it works…
See also
5. Multitasking in Your App
Introduction
Word counting using threads
Getting ready
How to do it…
How it works…
There's more…
Creating an SEO app
Getting ready
How to do it…
How it works…
There's more…
Creating a CycloneChecker app
Getting ready
How to do it…
How it works…
There's more…
Checking links of our website
Getting ready
How to do it…
How it works…
There's more…
6. Working with Playgrounds
Introduction
Creating the first playground
Getting ready
How to do it…
How it works…
There's more…
Watching some graphics
Getting ready
How to do it…
How it works…
There's more…
Watching a temperature with color
Getting ready
How to do it…
How it works…
There's more…
Stretching an image
Getting ready
How to do it…
How it works…
There's more…
Beautifying your text using Pangrams
Getting ready
How to do it…
How it works…
There's more…
Receiving JSONs
Getting ready
How to do it…
How it works…
There's more…
Creating our own class representations
Getting ready
How to do it…
How it works…
There's more…
Rich documentation
Getting ready
How to do it…
How it works…
There's more…
Navigating pages in playgrounds
Getting ready
How to do it…
How it works…
See also
7. Swift Debugging with Xcode
Introduction
Validating the values – developing a tax income simulator app
Getting ready
How to do it…
How it works…
There's more…
Debugging with Xcode and Swift – the best checker movement
Getting ready
How to do it…
How it works…
There's more…
Debugging with LLDB
Getting ready
How to do it…
How it works…
See also
Profiling an app
Getting ready
How to do it…
How it works…
See also
Error handling in Swift 2.0
Getting ready
How to do it…
How it works…
There's more…
Custom error handling in Swift 2.0
Getting ready
How to do it…
How it works…
Availability checking in Swift 2.0
Getting ready
How to do it…
How it works…
There's more…
See also…
8. Integrating with Objective-C
Introduction
Calling a cab
Getting ready
How to do it…
How it works…
See also
Hiring a van
Getting ready
How to do it…
How it works…
Porting your code from one language to another
Getting ready
How to do it…
How it works…
There's more…
Replacing the user interface classes
Getting ready
How to do it…
How it works…
There's more…
Upgrading the app delegate
Getting ready
How to do it…
How it works…
There's more…
Creating your own custom framework
Getting ready
How to do it…
How it works…
9. Dealing with Other Languages
Introduction
Using my old address book
Getting ready
How to do it…
How it works...
Compressing a message
Getting ready
How to do it…
How it works…
There's more…
Using assembly code with Swift
Getting ready
How to do it…
How it works…
There's more…
Sharing C++ code with Swift
Getting ready
How to do it…
How it works…
10. Data Access
Introduction
Creating an SQLite database
Getting ready
How to do it…
How it works…
See also
Checking where your IP is from
Getting ready
How to do it…
How it works…
See also
Tracking your phone activity
Getting ready
How to do it…
How it works…
There's more…
Controlling your stocks
Getting ready
How to do it…
How it works…
There's more…
Designing a voting device using CouchDB
Getting ready
How to do it…
How it works…
There's more…
11. Extensions, Photos, and More
Introduction
Developing the geekiest keyboard
Getting ready
How to do it…
How it works…
There's more…
Time to take your pill
Getting ready
How to do it…
How it works…
There's more…
Adding effects to your photos
Getting ready
How to do it…
How it works…
See also
Being a film critic
Getting ready
How to do it…
Creating the workspace
Developing the iOS part of the app
Coding the class
Testing the app
How it works…
There's more…
See also
Leaving breadcrumbs
Getting ready
How to do it…
How it works…
There's more…
Creating the Currency Converter app
Getting ready
How to do it…
How it works…
There's more…
Method swizzling in Swift
Getting ready
How to do it…
How it works…
There's more…
Associated objects in Swift
Getting ready
How to do it…
How it works…
Index
← Prev
Back
Next →
← Prev
Back
Next →