这是在 ios 8 中从通讯录访问联系人详细信息时注意到的奇怪行为。我的场景很简单
- 显示联系人表
- 选择将调用 didSelectPerson 方法的行
- 在 didSelectPerson 方法中
推送 SecondViewController
- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)peoplePicker didSelectPerson:(ABRecordRef)person; { SecondViewController *detailVC = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]; [detailVC.view setBackgroundColor: [UIColor redColor]]; // [peoplePicker.navigationController pushViewController:detailVC animated:YES]; [peoplePicker pushViewController:detailVC animated:YES]; }
但发生的是 ABPeoplePickerNavigationController 解雇。请赐教。