McDJ
McDJ

Reputation: 807

Application update, insert data in coredata while preserving userdata without modelchange

I want to release an update for my app.

I'm stuck on how to update the existing core data database which also stores data entered by the user. All i need to do is update a couple of records and preserve current user data. No changes are made to the model.

Thanks.

Upvotes: 1

Views: 852

Answers (1)

Paul Lynch
Paul Lynch

Reputation: 19789

Write a chunk of code that performs the update, and set a user preference value (NSUserDefaults) when you have done so. Include that code in your new version, checking the preference value first.

Upvotes: 3

Related Questions