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
  • 386,424
  • 207
  • 554
  • 861
McDJ
  • 697
  • 11
  • 26

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,719
  • 4
  • 36
  • 41