Swift Cookbook
eBook - ePub

Swift Cookbook

Cecil Costa

Share book
  1. 392 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Swift Cookbook

Cecil Costa

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Swift Cookbook an online PDF/ePUB?
Yes, you can access Swift Cookbook by Cecil Costa in PDF and/or ePUB format, as well as other popular books in Informatica & Programmazione. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781784391379

Swift Cookbook


Table of Contents

Swift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
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 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...
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...
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...
There's more...
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...
Working with sets
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 the right answer
Getting ready
How to do it...
How it works...
There's more...
Avoiding 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...
There's more...
5. Multitasking
Introduction
Working of a device while you navigate
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...
Being aware of cyclones
Getting ready
How to do it...
How it works...
There's more
Links on our website
Getting ready
How to do itā€¦
How it works...
There's more
6. Playground
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 the temperature
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
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...
Dangerous moves
Getting ready
How to do it...
How it works...
There's more...
7. Swift Debugging with Xcode
Introduction
The Tax income simulator
Getting ready
How to do it...
How it works...
There's moreā€¦
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...
There's more...
Profiling an app
Getting ready
How to do it...
How it works...
There's more...
8. Integrating with Objective-C
Introduction
Calling a cab
Getting ready
How to do it...
How it works...
There's more...
Hiring a van
Getting ready
How to do it...
How it works...
Porting from one language to another
Getting ready
How to do it...
How it works...
There's more...
Replacing the UI 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 a framework
Getting ready
How to do it...
How it works...
There's more...
9. Dealing with Other Languages
Introduction
Using your 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...
There's more...
Checking where your IP is from
Getting ready
How to do it...
How it works...
There's more...
Tracking your phone activity
Getting ready
How to do it...
How it works...
There's more...
Controlling your stock
Getting ready
How to do it...
How it works...
There's more...
Voting devices
Getting ready
How to do it...
How it works...
There's more...
11. Miscellaneous
Introduction
The geekest keyboard
Getting ready
How to...

Table of contents