I am able to create new contact using ABAddressBookRef. Is it posible to automatically update a particular contact with some values in database?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can update a particular record from the addressbook. For that you need to know the person’s recordID and pass it to the following you will get the existing person’s record. Then set the values for the properties. If you want to change any value then first remove earlier and then set the new one. For person’s recordID if u are storing the person’s record in the same application then at that time you can keep the IDs in an array. In my application I was showing the addressbook records in tableview so while fetching them I had stored their recordIds in an array. You can refer the code below: