我試圖添加一個新的聯繫人複製現有的聯繫人的值。 if let mutableContact = self.editingCard?.contact.mutableCopy() as? CNMutableContact {
let editCardViewController = CNContactViewController(for: mutableContact)
editC
當我有這導致如由儀器內存泄漏的方法,包括: -(BOOL)checkIfGroupExistWithName:(NSString*)groupName
{
BOOL hasGroup = NO;
//checks to see if the group is created ad creats group for Handheld contacts
CFError
func getContacts() {
let store = CNContactStore()
if CNContactStore.authorizationStatus(for: .contacts) == .notDetermined {
store.requestAccess(for: .contacts, completionHandler: { (a