Book Image

Learning SQLite for iOS

By : Gene Da Rocha
Book Image

Learning SQLite for iOS

By: Gene Da Rocha

Overview of this book

The ability to use SQLite with iOS provides a great opportunity to build amazing apps. Apple's iOS SDK provides native support for SQLite databases. This combination offers the potential to create powerful, data-persistent applications. This book starts with the architecture of SQLite database and introduces you to concepts in SQL . You will find yourself equipped to design your own database system, administer it, and maintain it. Further, you will learn how to operate your SQLite databases smoothly using SQL commands. You will be able to extend the functionality of SQLite by using its vast arsenal of C API calls to build some interesting, exciting, new, and intelligent data-driven applications. Understand how Xcode, HTML5, and Phonegap can be used to build a cross-platform modern app which can benefit from all these technologies - all through creating a complete, customizable application skeleton that you can build on for your own apps.
Table of Contents (15 chapters)
Learning SQLite for iOS
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Starting an Xcode Project with Swift


Xcode has been impacted with release fixes and enhances to the Swift language. So, sometimes, code that used to work easily now requires some coding changes before the compiler is happy with it. This is something that will always happen with a changing code base for a new language.

Start by opening Xcode. The best version of Xcode is the latest one, available from the Apple App Store at https://developer.apple.com/xcode/download/. Install Xcode, and when everything is set up, launch Xcode and follow these steps:

  1. Create a new project (Cmd+Shift+N).

  2. In the template selector, make sure iOS | Application is selected. Choose the Single View Application template to start the process:

  3. You are then prompted to add the project name, so add a name like Test Swift Project.

  4. Next, add in the company name as Voxstar Ltd or your company's name.

  5. Next, add in the organizer identifier, in our case com.voxstar.testswiftproject, which will identify a name for your apps and that...