I’m just leaning iPhone app development and I’ve figured out how to read and write database info. However I still haven’t found sufficient info on how to set up a default database with all the initial values.
Example I want a database with a list of fruits. It will initially contain all the values I can think of such as apple, pear, orange, apple etc. When the app loads the first time this should already be part of the database. The user can then edit these values.
I don’t want to have to put the info in a flat text file and import it on initial launch. I think that’s kind of lame I’d rather just have an initial database file.
U can use SQLite Database for your requirement.
Refer phone-sdk-tutorial-reading-data-from-a-sqlite-database link. It also contains sample