How to copy the database from the bundle to the Documents folder (from xcode interface or programmaticly)? I want to use sqlite3 database to insert/update. I have made database and put into application structure using xcode interfce (drag/drop).
Share
Use NSFileManager’s
-copyItemAtPath:toPath:error:method to copy the file. If you prefer to work with URLs, there’s also-copyItemAtURL:toURL:error:.There’s a fine example of how to do this in the question iPhone (iOS): copying files from main bundle to documents folder error.