我们如何知道哪个 CNContainer 代表 iCloud?
How do we know which CNContainer represents iCloud?
Also asked on the Apple dev forums.
它的type是CNContainerType.CardDAV。
在我的测试中,它的名字是"Card"。是通用的吗?
联系人框架不提供有关特定容器是否对应于 iCloud 的信息。您可以保证,如果 iCloud 容器存在,它将是 CardDAV
类型。否则,你没有知识。如果您需要更多,并且您有一个很好的用例,请向 Apple 提交错误报告。
Also asked on the Apple dev forums.
它的type是CNContainerType.CardDAV。
在我的测试中,它的名字是"Card"。是通用的吗?
联系人框架不提供有关特定容器是否对应于 iCloud 的信息。您可以保证,如果 iCloud 容器存在,它将是 CardDAV
类型。否则,你没有知识。如果您需要更多,并且您有一个很好的用例,请向 Apple 提交错误报告。