1

I use an ABPersonViewController class to modify a contact.

In ios6 a could display the delete button at the end of the view, using the code:

[self.modContatto setValue:[NSNumber numberWithBool:YES] forKey:@"allowsDeletion"];

In ios7 the same code has not effect and the delete button is not displayed.

There is a way in io7 to display the delete button?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
lmascherpa
  • 21
  • 2

1 Answers1

1

The method that you used before was a private method, and should have never been used. Apple could have rejected your app due to this. In iOS7, it is obviously no longer available. See here for more information. The actual docs don't allow either the deletion of contacts.

Community
  • 1
  • 1
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116