我有一个属性modificationDate
在我的Entity A.
我想设置它的值,只要NSManagedObject
保存。但是,如果我尝试这样做,在NSManagedObject
willSave:
方法,我得到一个错误:核心数据willSave:方法
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to process pending changes before save. The context is still dirty after 100 attempts. Typically this recursive dirtying is caused by a bad validation method, -willSave, or notification handler.' ***
所以,我想知道,什么是设置的modificationDate
价值的最佳方式是什么?
你还需要检查,如果时间modificationdate在昌edValues – malhal 2015-09-02 12:16:15