Selecting a contact from the Address Book with MonoTouch

Written on

This screencast shows how to programmatically select a contact from the address book in a MonoTouch iPhone application, in only 5 minutes.

The key bit of code is to create an ABPeoplePickerNavigationController, and then take advantage of its SelectPerson event. The brief idea is shown in this code snippet:

var picker = new ABPeoplePickerNavigationController();

picker.SelectPerson +=
    delegate(object sender, ABPeoplePickerSelectPersonEventArgs e) {
        ABPerson selectedPerson = e.Person;
        // do something with 'selectedPerson'
};

Hope you found this screencast helpful.


Comments

MonoTouch Video: Selecting a contact from the Address Book with MonoTouch Thank you for submitting this entry - Trackback from MonoTouch.Info

MonoTouch.Info

Social comments and analytics for this post This post was mentioned on Twitter by Alex York: Blogged: screencast for selecting a contact from the address book with #MonoTouch in 5 minutes! http://bit.ly/1DLtGz

uberVU - social comments