1

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.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
McDJ
  • 767
  • 2
  • 11
  • 28

1 Answers1

3

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.

Paul Lynch
  • 19,769
  • 4
  • 37
  • 41