tags:

views:

53

answers:

3

i am a new iphone developer i am facing problems to connect my applications to my database sqlite3 i went through many tutorials on google but not able to understand

please provide easiest way to connect with database

actually i want to take a name from database when i click a button please help me

+3  A: 

You should really use Core Data rather than trying to directly use a sqlite database. Core Data, though somewhat complex, is still much much simpler than going any other route. Apple provides numerous Core Data sample code which will help to get you started. Specifically look at the LocateMe code.

Run Loop
A: 

Hello, I think you should check this tutorial. Looks pretty nice and clear.

http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/

Also, this wrapper for sqlite is good too.

http://gusmueller.com/blog/archives/2008/06/new_home_for_fmdb.html

Hope it helps!

Karasutengu
A: 

This is also a good tutorial on using sqlite3 with iPhone apps.

http://icodeblog.com/2008/08/19/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-1/

Although I'd probably agree with the above - it's worth learning Core Data.

gnuchu