如何在最初显示ABPeoplePickerNavigationController
时指定一个组(因此它不会自动显示“所有联系人”)?
答案 0 :(得分:2)
将您的班级设置为人员选择器的代表(pp.delegate = self;)
然后执行:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
if([navigationController.viewControllers count] > 1) {
navigationController.delegate = nil;
[navigationController popViewControllerAnimated:NO];
}
}
它似乎最适合关闭动画,但仍然适用于它但有点傻。仅在模拟器上测试。
d