阅读背景:

我们如何知道哪个CNContainer代表iCloud?

来源:互联网 

Also asked on the Apple dev forums.

还在Apple dev论坛上询问过。

Its type is CNContainerType.CardDAV.

它的类型是CNContainerType.CardDAV。

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

在我的测试中,它的名字是“卡”。那是普遍的吗?

1 个解决方案

#1


2  

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.

Contacts框架不提供有关特定容器是否与iCloud相对应的信息。您可以保证,如果iCloud容器存在,它将是CardDAV类型。否则,你不知道。如果您需要更多,并且您有一个很好的用例,请向Apple提交错误报告。


分享到: