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

后端 未结 1 1721
庸人自扰
庸人自扰 2021-01-24 18:54

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 updat

1条回答
  •  不思量自难忘°
    2021-01-24 19:30

    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.

    0 讨论(0)
提交回复
热议问题