ios - How to remove data inserted in the application in the core data -


in core data , have prepopulated data using command line application of mac.

after in application storing additional data .now problem whenever application terminates data not pre populated , have stored still there . want removed [the data added in application not prepopulated data] .

can suggest me how can ?

sounds don't want ever store data created inside of application want revert preloaded data. if not correct please clarify updating question.

if correct add second nspersistentstore nspersistentstorecoordinator. second 1 of type "in memory". further, change options on first store read-only.

with these changes users add objects , go in-memory store. when application quits in memory store released , changes go away.


Comments