Skip to content

Instantly share code, notes, and snippets.

@dannycabrera
Created September 27, 2013 15:37
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 dannycabrera/6730579 to your computer and use it in GitHub Desktop.
Save dannycabrera/6730579 to your computer and use it in GitHub Desktop.
Xamarin.iOS Create Contact
var person = new ABPerson()
{
FirstName = "John",
LastName = "Doe"
};
NSError error;
var ab = ABAddressBook.Create (out error);
ab.Add (person);
ab.Save ();
if (error != null)
Console.WriteLine ("Error Saving");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment