O'Reilly logo

iPhone Location Aware Apps by Example by Zeeshan Chawdhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — storing and retrieving events with SQLite

Now that we have defined how we will store the data received from Eventful API in SQLite, let's create a new series for this chapter, titled Hello Events. Note that this time we will use the JSON API from Eventful and the new JSON framework in iOS 5.

  1. Create a new Single View application from within Xcode and name it Hello Events-SQLite.
  2. Add the Core Location and SQLite libraries to your project. When creating the project, do no forget to name the class prefix as Hello Events as well.
  3. Our sample reading and writing from/to an SQLite database example will work as follows:
    • Create a database on the device or open it, if already existing
    • Read Eventful JSON API
    • Write events into the events ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required