Last listened to The Getaway by Immortal Technique (on 10 Mar 2010, 14:39)

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 | Reply

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 | Reply

Add comment




  Country flag

Visual verification


biuquote
  • Comment
  • Preview
Loading