How do we know which CNContainer represents iCloud?

非 Y 不嫁゛ 提交于 2020-02-04 01:11:50

问题


Also asked on the Apple dev forums.

Its type is CNContainerType.CardDAV.

In my testing, its name is "Card". Is that universal?


回答1:


The Contacts framework does not provide information as to whether a particular container corresponds to iCloud. You are guaranteed that if the iCloud container is present, it will be of type CardDAV. Otherwise, you have no knowledge. If you need more, and you have a good use case, file a bug report with Apple.



来源:https://stackoverflow.com/questions/33509487/how-do-we-know-which-cncontainer-represents-icloud

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