Ideas for loading initial data in an iPhone application?

Posted by Derek Clarkson on Stack Overflow See other posts from Stack Overflow or by Derek Clarkson
Published on 2010-05-22T14:24:09Z Indexed on 2010/05/22 14:30 UTC
Read the original article Hit count: 233

Filed under:
|
|

Hi all, In my app I want to load some initial data to show the user how it works. The app uses a CoreData managed sqllite db.

SO far I've thought of 3 options:

  1. Write code into a class to programmatically create the data.

  2. Create a xml file in the apps resources and load through a NSXmlParser whose delegate creates the entries in the sqllite db.

  3. Same as option #2, but use a json file and bring in a 3rd party lib to read it.

Are there other options I have not found yet? and given that I'm talking about perhaps 6 records per table when there are 3 tables, which would you choose?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about SDK