Last listened to The Ricky Gervais Show 2002-02-09 by Ricky Gervais, Stephen Merchant & Karl Pilkington (on 25 Aug 2010, 16:00)

Selecting a contact from the Address Book with MonoTouch

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

10/31/2009 6:24:48 PM #

trackback

MonoTouch Video: Selecting a contact from the Address Book with MonoTouch

Thank you for submitting this entry - Trackback from MonoTouch.Info

MonoTouch.Info |

10/31/2009 9:56:15 PM #

trackback

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 |

Comments are closed