Reputation: 687
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.
Upvotes: 3
Views: 1313
Reputation: 9093
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.
Upvotes: 3