속성에 modificationDate
이 있습니다. Entity A.
NSManagedObject
이 저장 될 때마다 해당 값을 설정하고 싶습니다. 그래서코어 데이터 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
의 값을 설정하는 가장 좋은 방법은 무엇입니까 : 내가 NSManagedObject
willSave:
방법으로 그렇게하려고 경우, 오류가 발생합니다? willSave의 NSManagedObject 워드 프로세서에서
을 설정 할 수 있습니다 관찰을 사용하여 필요하지 않습니다 changedValues ()에 나타납니다, 설정 edValues – malhal