开发者

Programmatically Reset Persistent Store file in Core Data

We know the message

The model used to open the store 开发者_如何学Pythonis incompatible with the one used to create the store

We also know the solution. Just delete the apps, reset.

Can we do that programatically?

The core data only store cache result anyway.

That way once the apps are online I do not have to worry about updating core data.


Just use NSFileManager to delete the data store file on disk.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜