1

I am trying to include a pre-loaded Core Data database in my app.

I am using the solution given in this query but it is not working.

Rather than copying out the database I have included in the app bundle, the savetoURL command just creates a new empty database file every time.

Anybody any idea why this might be?

Really appreciate any help, have been stuck on this for two days now.

Community
  • 1
  • 1
Alan
  • 4,325
  • 3
  • 21
  • 25
  • The following document has the answer to your question: http://stackoverflow.com/questions/8041278/prepopulate-core-data-in-ios-5 – Faz Ya Mar 06 '12 at 06:30
  • I've written a solution here: http://stackoverflow.com/questions/8683892/pre-load-core-data-database-in-ios-5-with-uimanageddocument/11713120#11713120 – wrightak Jul 29 '12 at 21:37

0 Answers0