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.
- Create a new
Single View application from within Xcode and name it Hello Events-SQLite.
- 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.
- 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 ...