Is there a way in Monotouch how to get ABPerson object from an IntPtr. I'm using ABPeoplePickerNavigationController and its ABPeoplePickerNavigationControllerDelegate. I have to read some properties of selected person in method ShouldContinue. My code looks like this:
ABPeoplePickerNavigationController nc = new ABPeoplePickerNavigationController();
nc.Delegate = new CustomABPeoplePickerNavigationControllerDelegate();
And my custom delegate looks like this:
public class CustomABPeoplePickerNavigationControllerDelegate : ABPeoplePickerNavigationControllerDelegate
{
public override bool ShouldContinue (ABPeoplePickerNavigationController peoplePicker, IntPtr selectedPerson)
{
// *** HERE I HAVE TO GET ABPerson FROM IntPtr ***
peoplePicker.DismissModalViewControllerAnimated(false);
return true;
}
}