iOS Code Snippet Add Contact to Address Book(Iphone Contacts)

narek adonts

Well-Known Member
Licensed User
Hi

A code to add contact to Iphone Contacts with First Name, Last Name, Phone Number and Image

I almost dont understand anything about Objective C
If there is someone more experienced then me, this module can me extended to have a full Contacts Class.

You Should Initialize the module first.

Please see attached the module

Narek
 

Attachments

Brian Robinson

Active Member
Licensed User
Hi,

Does this code snippet actually work. Do you have any examples of it working?

I had a quick look at the Obj-C and there is a lot in there that is not needed. It was in the original code that was adding Pets to their contacts list (that's why the name AddPetToContacts). But the first part of it is setting up a record to insert. we don't need that because we are passing in the parameters.

I can clean it up and try and get it to bring back the list as well

Cheers
Brian
 
Last edited:

Brian Robinson

Active Member
Licensed User
I have cleaned this a little to make it a bit more usable. Will be adding phone numbers etc to it, once I think I am on the right track.

Oh yes, I have my provision and .cer files in the code. The reference to those will need to be removed.

Cheers
Brian
 

Attachments

Top