Skip to content

Instantly share code, notes, and snippets.

@anujb
Created March 13, 2013 17:16
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 anujb/5154221 to your computer and use it in GitHub Desktop.
Save anujb/5154221 to your computer and use it in GitHub Desktop.
ABAddressBook.Create
public static ABAddressBook Create (out NSError error)
{
IntPtr intPtr;
IntPtr value = ABAddressBook.ABAddressBookCreateWithOptions (IntPtr.Zero, out intPtr);
ABAddressBook result;
if (value == IntPtr.Zero)
{
error = new NSError (intPtr);
result = null;
}
else
{
error = null;
result = new ABAddressBook (value, true);
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment