iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
People Picker
You will undoubtedly want your user to be able to simply select a contact from a list. For example, let’s say you are writing an app that allows you to send a vCard over Bluetooth to another user; you will need to let your user select which contact card she wants to send. This task is easily accomplished using ABPeoplePickerNavigationController. You can turn on this functionality in the sample app by uncommenting line 63 ([self showPicker: nil];) in the RootViewController.m class.
Your class will first need to implement ABPeoplePickerNavigationControllerDelegate. You can then create a new picker controller using the following code snippet:
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access