我们如何知道哪个CNContainer代表iCloud? [英] How do we know which CNContainer represents iCloud?
本文介绍了我们如何知道哪个CNContainer代表iCloud?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
它类型为CNContainerType.CardDAV。
Its type is CNContainerType.CardDAV.
在我的测试中,其名称为卡。
In my testing, its name is "Card". Is that universal?
推荐答案
Contacts框架不提供有关特定容器是否对应于iCloud的信息。您可以确保如果存在iCloud容器,则其类型将为 CardDAV
。否则,您将不知道。如果您需要更多的东西,并且有很好的用例,请向Apple提交错误报告。
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.
这篇关于我们如何知道哪个CNContainer代表iCloud?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文