ABPersonViewController +删除

时间:2009-05-11 12:25:51

标签: iphone abpersonviewcontroller

有人可以帮助我在ABPersonViewController启用删除按钮吗?

2 个答案:

答案 0 :(得分:2)

看一下不使用任何私有方法的ABPersonViewController + Delete类别:

https://github.com/shrtlist/ABDelete

答案 1 :(得分:0)

对我来说,这段代码有效:

ABPersonViewController *pvc = [[ABPersonViewController alloc] init];
[pvc setPersonViewDelegate:self];
[pvc setAllowsEditing:YES];
[pvc setAllowsDeletion:YES];
[pvc setAllowsActions:YES];