Reputation: 432
i am using CNContact framework to retrive contacts from device and send to web using web services, but i want to edit contact using CNContact Framework but i don't know how to do...Thanks in advance
Upvotes: 0
Views: 773
Reputation: 1490
You can try using the CNContactViewController.
let contactsViewController = CNContactViewController(forNewContact: contactToEdit)
contactsViewController.delegate = self
contactsViewController.title = "Edit contact"
contactsViewController.contactStore = CNContactStore()
self.navigationController?.pushViewController(contactsViewController, animated: true)
Upvotes: 0