问题
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