iOS4之前的默认通讯录?
我真的希望有人能回答几个问题,因为我一直在为一个相关问题而烦恼,我真的希望我当前想到的解决方案能够解决这个问题......
1)哪个地址簿会有以编程方式创建联系人时使用(在 iOS 4 添加 ABPersonCreateInSource 之前,我们可以指定要保存到的地址簿) - 我们可以安全地假设它始终是本地地址簿,还是有时可以是(例如)“Exchange”地址簿?
还 2)本地地址簿是否总是存在(即使它是空的),所以我总是能够在ABAddressBookCopyArrayOfAllSources中找到它(至少在iOS4下?)
任何信息(或意见,如果这是你得到的最好的!)我们非常感谢这些信息,因为这方面的信息似乎非常匮乏。
干杯
彼得
A couple of questions I really hope someone may have the answer to, as I have been pulling my hair out with a related problem and I am REALLY hoping the current solution I have in mind will nail it...
1) Which addressBook would have been used when a contact was created programmatically (before iOS 4 added ABPersonCreateInSource to allow us to specify which addressBook to save to) - can we safely assume it was ALWAYS Local, or could it sometimes be (say) the "Exchange" addressBook?
Also
2) Does a local addressBook always exist (even if its empty) so I will always be able to find it in an ABAddressBookCopyArrayOfAllSources (under iOS4 at least?)
Any info (or opinions, if that's the best you got!) on either of these gratefully received, as information seems very thin on the ground in this area.
Cheers
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
读者们,这篇文章是我和彼得之间关于这个主题的一些持续对话。
在 iOS 4+ 中从 ABAddressBook 获取特定的 ABSource
看起来确实如此就像 ABAddressBook 的文档很少,而且有点拜占庭式的。
Readers, this post has some ongoing conversation between Peter and I on this topic.
Obtaining Specific ABSource from ABAddressBook in iOS 4+
It does seem like the ABAddressBook is sparsely documented and a bit Byzantine.