ios - iPhone core data preset -
what best way initialize core data database content. iphone app have static database products (data , images). how/where store images, how pre-populate database?
here did:
- create database inside iphone app
- i created model in xcode , query against database (this creates database)
- my static data csv file
- use ruby script read csv file
- use ruby gem sqlite3 insert data database
- copy project
alternative:
- store csv/xml file containing data inside app
- parse on startup , create nsmanagedobjects
tools/resources:
- base software editing/viewing sqlite3 database
database location: i'm afraid don't remember on top of head when use simulator application built , copied directory. think path application this. database depending on how setup in documents folder.
~user/library/application settings/ios simulator/<version>/<app id>/
Comments
Post a Comment