iCloud incremental data

荒凉一梦 提交于 2019-12-08 06:48:02

问题


Reading the iCloud design docs, it mentions:

Because the system tracks changes to the document, it is able to upload only the parts that changed, as shown in step 2. This optimization reduces iCloud network traffic and also reduces the amount of power consumed by the device—important for battery-based devices.

In my scenario, I have a plist file that a UIDocument tracks. What if I replace the plist file with a copy of same plist, same filename, same path? I know that the metadata gets updated, but does the entire file get transferred over to iCloud again?


回答1:


iCloud does not track based on UID, it tracks on filename. Your file will be diffed and only the changes will be sent to iCloud.

If you want UID tracking, Apple recommends that you add a UID and document schema version to your file formats (as they do).



来源:https://stackoverflow.com/questions/11894108/icloud-incremental-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!