Restkit 0.20 JSON Mapping along with additional offline data

后端 未结 1 1017
傲寒
傲寒 2020-12-11 09:35

So let\'s say I have a JSON object like such:

{
  \"userList\" : [
    {
      \"ID\" : 1,
      \"firstName\" : \"John\",
      \"lastName\" : \"Doe\"
             


        
相关标签:
1条回答
  • 2020-12-11 09:57

    Handle this outside RestKit, but in a way that is triggered by RestKit (and any other change):

    Override willSave on your managed object subclass and update the modified date whenever it's called (setting the primitive value to avoid recursion).

    0 讨论(0)
提交回复
热议问题