自定义 ABPeoplePickerNavigationController
有什么方法可以自定义 ABPeoplePickerNavController 数据源吗? 我的意思是,我不需要从手机的地址簿中获取成员,而是需要它从数组中获取数据,例如在我的应用程序中。 我将从服务器获取成员列表,并希望在 ABPeoplePickerNavCont 中显示它们。
如果不可能的话,有没有自定义的ABPeoplePicker。或者我必须从头开始创建它?
谢谢。
Is there any way that I can customize ABPeoplePickerNavController data source?
I mean instead of taking members from phone's addressBook, I need it to take data from array for example in my application.
I will get list of members from server and I want to display them in ABPeoplePickerNavCont.
If it is not possible, is there any custom ABPeoplePicker. Or will I have to create it all over from ground?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apple 的 ABPeoplePickerNavigationController 文档指出,您可以设置一个ABAddressBookRef(“addressBook”是ABPeoplePickerNavigationController的一个属性),从中获取联系人列表。因此,您只需要提供一个 ABAddressBookRef 来提供您想要使用的联系人列表。
Apple's ABPeoplePickerNavigationController documentation states that you can set an ABAddressBookRef ("addressBook" is a property of ABPeoplePickerNavigationController) from which the list of contacts is obtained. So you just need to provide an ABAddressBookRef that supplies the list of contacts you want to use.