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 ...
Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.