I want to delete a contact from address book through my app,Can anyone help me.I'm working with addressbook framework.
I wanna be screen like the above with delete contact option,But for me there is no delete option
let addr:ABMultiValue = ABMultiValueCreateMutable(ABPropertyType(kABStringPropertyType)).takeRetainedValue()
ABMultiValueAddValueAndLabel(addr,SecondPart as String, kABHomeLabel, nil)
ABRecordSetValue(newPerson, kABPersonPhoneProperty, addr, nil)
let picker: ABNewPersonViewController = ABNewPersonViewController()
picker.displayedPerson = newPerson
picker.newPersonViewDelegate = self
self.navigationController?.pushViewController(picker, animated: true)
when i googling for this problem found one ref , but is not suitable.through the link how can i acheive this.
and also tried as like below
picker.allowsDeletion = true
But for this having error,bcoz there is no member function in ABNewPersonViewController
Can u help me!,thanks in advance