cocoa touch - Add name to the Address Book of the iphone -


In the iPhone app, I have details like description, name, address, I need to save the name, address in the iPhone address book is. Please help me how to do this.

Thanks in advance.

  ABAddressBookRef address book = abderracebook creation (); ABRecordRef person = ABPersonCreate (); CFErrorRef error; If (! ABRecordSetValue (person, kABPersonFirstNameProperty, @ "John", & amp; error)) (// ABOUT!) (// ABRecordSetValue (Person, KebarsonLastProperty, @ "Smith", and Error)) (// Error)! (ADA Address Book Save (address book, and error)) // // eror} You can set other properties! With the other  kABxx  constants. 


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -