Cloudkit Sync With CoreData Issue with CKModifyOperation
Am trying to sync cloudkit and coredata. Have two tables as:
Now according to apple this are the steps we must follow.
Now say I have 2 devices and have already synced them with following data
Now in 1 device I delete Parent-1 and P1-Child1 and let it sync to cloud. On cloudkit dashboard i verify that the Parent and child both have been successfully deleted.
In Device 2, Now I add P1-Child2 another child to previous parent. Consider the above steps
P1-Child2 is saved successfully on Cloud without a parent. So now am left with a child record with no parent.
Can you guys help me in figuring out the right method to solve this. I thought if apple could have given an error on CKModifyOperation as mentioned in its doc then I could know that a parent record does not exist and I can re-save or upload a parent record along with the child.
链接地址: http://www.djcxy.com/p/62134.html上一篇: 应用程序启动条件