Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning SQLite for iOS

You're reading from   Learning SQLite for iOS Extend SQLite with mobile development skills to build great apps for iOS devices

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher
ISBN-13 9781785288975
Length 154 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Gene Da Rocha Gene Da Rocha
Author Profile Icon Gene Da Rocha
Gene Da Rocha
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to SQL and SQLite FREE CHAPTER 2. Database Design Concepts 3. Administering the Database 4. Essentials of SQL 5. Exposing the C API 6. Using Swift with iOS and SQLite 7. iOS Development with PhoneGap and HTML5 8. More Features and Advances in SQLite Index

Creating a simple Swift


With the advent of Swift and Swift2, there is the use of an environment called a playground now. It is a place where you can set up a quick environment with some code and then see the results. It is a quick, new way to use the new setup. When you start, it will have a main window and the results on the second, split one.

In Xcode, navigate to New | Playground and the following screenshot will be shown. Give a name to your playground. You can have several running of them under different platforms, so a meaningful name would be useful:

Once this is created and the Next button is clicked on, the following screen will appear. Here, you can create the code, test ideas and code snippets, and just try it out. It is a great and simple idea, which will help motivate existing developers, and create new developers for the future:

As you can see from the preceding screenshot, there is a split page on the right-hand side, which can be adjusted as per requirement. The code appears...

lock icon The rest of the chapter is locked
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.
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
Renews at €18.99/month. Cancel anytime