Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let contactToUpdate = matchingContact.mutableCopy() as! CNMutableContact // hint: .mutableCopy()
- contactToUpdate.familyName = c.nachname // update family name, new string derived from some other source earlier
- let saveRequest = CNSaveRequest()
- saveRequest.update(contactToUpdate) // hint: .update
- try! store.execute(saveRequest)
Add Comment
Please, Sign In to add comment