In my application i m using sqlite database.when i run it in iphone simulater it works fine.but it cant connect database with device.the path for that database is:
/Users/taxsmart7/Library/Application Support/iPhone Simulator/4.3/Applications/A644750D- 5175-4FF1-BDA7-6EDF65895180/Documents/BillSplitter.sqlite
when i connect with my device the database display blank.
If you need only read sqlite3 database it makes sense to work with database in app bundle.
You open database as in example:
If you need to write in database on first run of your app you need to copy database file from app bundle into app documents directory and then open database for read and write access.