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

Hybrid applications


There are some misconceptions about the use of hybrid HTML5 apps. Users think that hybrid applications cannot store offline data in a database such as SQLite. Hybrid apps can work online and offline. They do not need to be connected all the time for it to work. PhoneGap with HTML5 gives more facilities, functionalities, and options.

The standard storage mechanism for HTML5 apps is the local storage on the device itself, that is, the database used is SQLite. If you are not connected online, data can be stored locally. Once the database is connected, it will upload data from the local database.

A common thought is that HTML5 is out of its league when it comes to native. However, today, in-app purchases, Game Centre, executing background tasks, accessing the GPS and the camera, and even Bluetooth, can be accessed via HTML5. PhoneGap is used where a native wrapper is required for an HTML5 app. There are some differences in the way native and hybrid/cross-development apps work...