Skip to content

Instantly share code, notes, and snippets.

@mikebluestein
Created November 28, 2013 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikebluestein/7694724 to your computer and use it in GitHub Desktop.
Save mikebluestein/7694724 to your computer and use it in GitHub Desktop.
NSError err;
ab = ABAddressBook.Create (out err);
if (err == null) {
ab.RequestAccess ((allowed, err1) => {
if (allowed) {
var people = ab.GetPeople ();
foreach (ABPerson person in people) {
Console.WriteLine ("{0} {1}", person.FirstName, person.LastName);
var phones = person.GetPhones ();
if (phones.Count > 0) {
foreach (var phone in phones)
Console.WriteLine (" {0}, {1}", phone.Label, phone.Value);
}
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment