Updating the application, inserting data into coredata while saving user data without changing the model

I want to publish an update for my application.

I went in cycles on how to update the existing basic database of data which also stores the data entered by the user. All I have to do is update a couple of records and save the current user data. No changes are made to the model.

Thanks.

+1
source share
1 answer

Write the code snippet that performs the upgrade and set the user preference value ( NSUserDefaults ) when you do this. Include this code in your new version by first checking the preference value.

+3
source

Source: https://habr.com/ru/post/1308553/


All Articles