阅读背景:

ABPersonRemoveImageData在本地工作但不更新iCloud

来源:互联网 

I have application managing the iPhone/iPad contacts, one of the functionalities is to delete a specific tag for multiple contacts.

我有管理iPhone / iPad联系人的应用程序,其中一项功能是删除多个联系人的特定标签。

All the tags work perfectly fine, after removing the tag data, it get reflected on the iCloud and other devices for the same iCloud/Apple ID.

所有标签都可以正常工作,删除标签数据后,它会在iCloud和其他设备上反映出相同的iCloud / Apple ID。

However, the Image of the contact doesn't get updated on the other devices.

但是,联系人的图像不会在其他设备上更新。

I'm using ABPersonRemoveImageData to remove the image data for the contact.

我正在使用ABPersonRemoveImageData删除联系人的图像数据。

Here the code sample:

这里是代码示例:

if (ABPersonHasImageData(person)) 
{
    ABPersonRemoveImageData(person, &error);
    ABAddressBookSave(ab, NULL);

    if (error != NULL) return false;
}

What is more weird, that for the same contact, and in the same code, I remove the birthday date and the image data, the removal of the birthday date gets reflected on other devices, while the Image still exists!

更奇怪的是,对于同一个联系人,在相同的代码中,我删除了生日日期和图像数据,生日日期的删除会反映在其他设备上,而图像仍然存在!

Is it a bug on the iOS?

这是iOS上的错误吗?

1 个解决方案

#1


1  

I've seen this too. If I update more than just the Image, it does sync the removed image. My Guess, is YES, its another bug with iCloud.

我也见过这个。如果我更新的不仅仅是图像,它会同步删除的图像。我的猜测,是的,它是iCloud的另一个错误。


分享到: