Skip to main content

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

Comments

  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.

    ReplyDelete
  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.

    ReplyDelete
  3. I really like the tutorials from:

    http://www.iphonesdkarticles.com/search/label/SQLite

    it should get you started in no-time.

    ReplyDelete
  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.

    ReplyDelete
  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.

    ReplyDelete
  6. Apart from Peter Quade's excellent answer, may I also suggest you to check out http://www.iphonekicks.com/tags/SQLite - 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 :-)

    ReplyDelete
  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.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.