Sunday, April 8, 2012

Where"s the best SQLite 3 tutorial for iPhone-SDK?

I'm looking for an complete tutorial which not just tells me how an query is executed, but also how I set up the whole thing including setting up the library, creating an database, and so on.

Where can I find it?

Source: Tips4all


  1. Using SQLite 3 on the iPhone is really not that different from using it on any other platform. You should read the general SQLite documentation.

    In your iPhone app, you usually open your SQLite database in the applicationDidFinishLaunching: method of your application delegate. After that, you can just use your database.

    I've used Gus Mueller's FMDatabase classes on the iPhone. They provide a thin wrapper around SQLite.

    A final note: It seems CoreData will become available on the iPhone with OS version 3. You can use SQLite through the CoreData framework.

  2. Take a look at this book:

    Beginning iPhone Development: Exploring the iPhone SDK by Dave Mark (Nov, 2008)

    There is a section dedicated to SQLite.

  3. I really like the tutorials from:

    it should get you started in no-time.

  4. Stanfords cs193p iPhone application development previous semester showed how to setup and use sqlite3 with iphone.

    I haven't checked the latest lecture's but there is a reference to sqlite in latest semester. There are lecture notes and video in iTunesU - check out cs193p web site for links/references/example code/lecture notes.

  5. iCodeBlog's has got a very well written tutorial on SQLite 3 as well.. Check out the first part at iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 1.

  6. Apart from Peter Quade's excellent answer, may I also suggest you to check out - here you would find many bookmarks to SQLite topics.

    And just FYI, iPhone Kicks is a social book marking site, a Digg clone but purely for the iPhone SDK links :-)

  7. I have some iPhone SQLite links in my Delicious bookmarks. There should be enough links there to teach you all the SQLite you will ever need. Lots of the tutorials are pretty simple and easy to understand. There are a few wrappers out there too. I haven't used any of the wrappers, but they look interesting. Also, check out other bookmarked items tagged SQLite on Delicious.