我有一個屬性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