CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Checkout
Account
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
GO TO
TOP
You're reading from
Swift Cookbook
Over 50 hands-on recipes to help you create apps, solve problems, and build your portfolio of projects in Swift
Product type
Paperback
Published in
Apr 2015
Publisher
ISBN-13
9781784391379
Length
392 pages
Edition
1st Edition
Languages
Swift
Concepts
iOS Development
Table of Contents
(13) Chapters
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
1. Getting Started with Xcode and Swift
FREE CHAPTER
Introduction
Installing Xcode from the App Store
Downloading the Xcode image
Starting a Swift project
Using Swift project options
Creating conditional code
Adding a developer account
Compiling from the command line
Using Swift as an interpreter
Adding a control version system to an existing project
2. Standard Library and Collections
Introduction
Creating HTML manually
Printing your object description
Quizzing the user
Searching for perfect numbers
Sorting an array of products
Finding the way out
Working with sets
Creating your own set
Organizing a dinner room
3. Using Structs and Generics
Introduction
Creating an exam app
Checking the right answer
Avoiding copying of structs
Creating a generic array initializer
Creating a priority list
Creating a protocol for the priority queue
4. Design Patterns with Swift
Introduction
Writing into a log file
Creating a factory of musical notes
Simulating a home automation
Delivering some pizzas
5. Multitasking
Introduction
Working of a device while you navigate
Creating an SEO app
Being aware of cyclones
Links on our website
6. Playground
Introduction
Creating the first playground
Watching some graphics
Watching the temperature
Stretching an image
Beautifying your text
Receiving JSONs
Dangerous moves
7. Swift Debugging with Xcode
Introduction
The Tax income simulator
The best checker movement
Debugging with LLDB
Profiling an app
8. Integrating with Objective-C
Introduction
Calling a cab
Hiring a van
Porting from one language to another
Replacing the UI classes
Upgrading the app delegate
Creating a framework
9. Dealing with Other Languages
Introduction
Using your old address book
Compressing a message
Using assembly code with Swift
Sharing C++ code with Swift
10. Data Access
Introduction
Creating an SQLite database
Checking where your IP is from
Tracking your phone activity
Controlling your stock
Voting devices
11. Miscellaneous
Introduction
The geekest keyboard
Time to take your pill
Adding effects to your photos
Being a film critic
Leaving breadcrumbs
Exchanging money
Index
Chapter 7. Swift Debugging with Xcode
In this chapter, we will cover the following topics:
The Tax income simulator
The best checker movement
Debugging with LLDB
Profiling an app
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 6
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$19.99/month
. Cancel anytime
NZ$14.99 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
NZ$14.99
each!
SHOP NOW