Created
March 13, 2013 17:16
-
-
Save anujb/5154221 to your computer and use it in GitHub Desktop.
ABAddressBook.Create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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