1
如何在最初显示ABPeoplePickerNavigationController
时指定组(因此它不会自动显示“所有联系人”)?如何在显示ABPeoplePickerNavigationController时指定组
如何在最初显示ABPeoplePickerNavigationController
时指定组(因此它不会自动显示“所有联系人”)?如何在显示ABPeoplePickerNavigationController时指定组
是的,我喜欢。我必须让它工作。
设置你的类的人选择器的委托(pp.delegate =自我;)
然后实现:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
if([navigationController.viewControllers count] > 1) {
navigationController.delegate = nil;
[navigationController popViewControllerAnimated:NO];
}
}
看来工作最好与动画关闭,但仍然有效用它但有点愚蠢。只在模拟器上测试过。
D