koen
koen

Reputation: 5729

Relocate NSPersistentStore

I'd like to move the files for my CoreData store of my iOS app from

../Library/Application Support/MyApp/

to

../Documents/Stores/

Can I just do this with NSFileManager, or do I need to use to merge the store from the old location to the new one (there is no data yet at the new location).

Upvotes: 0

Views: 69

Answers (1)

thom_ek
thom_ek

Reputation: 671

Yes, you can move db file to any location you want. NSFileManager is enough for that.

Upvotes: 1

Related Questions