我试图添加一个新的联系人复制现有的联系人的值。 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