I have a database db.sqlite3, i have copy-pasted it into the documents folder and use the code to access it inside the program.
[[[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES)
objectAtIndex:0] stringByAppendingPathComponent:kDbName] UTF8String].
And I am able to use it while my app works in simulator.
But when i tests in device, it doesn't work. I know that we should import it into Resources and then use it. I have added it into resources, but how can i access it from inside the program?