Shipping a pre populated SQLite DB within the app. Path of the DB on startup
问题 Maybe the title of the question is not very self-explanatory but I don't know how to summ it up. I'm finishing an App which is basically a DB. I will ship a DB within the App. Everything works well but now I came to the problem. When the App is installed, it needs to create the database on the device. So, I dragged the DB to the "Supporting Files" folder in my Xcode project (still Xcode 4.1, by the way). I went to the AppDelegate.m file and looked for the (NSPersistentStoreCoordinator *