iCloud增量数据 [英] iCloud incremental data

查看:104
本文介绍了iCloud增量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于系统跟踪对文档的更改,因此能够 仅上传已更改的部分,如步骤2所示.这 优化减少了iCloud网络流量,也减少了 设备消耗的电量-对于基于电池的电量很重要 设备.

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.

在我的情况下,我有一个UIDocument跟踪的plist文件.如果我用相同plist,相同文件名,相同路径的副本替换plist文件怎么办?我知道元数据会更新,但是整个文件会再次传输到iCloud吗?

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?

推荐答案

iCloud不会根据UID进行跟踪,而是根据文件名进行跟踪.您的文件将被差异化,只有更改将被发送到iCloud.

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.

如果要进行UID跟踪,Apple建议您将UID和文档架构版本添加到文件格式中(就像这样做一样).

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

这篇关于iCloud增量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆