我想从故事板中的按钮继续播放到ABPersonViewController
。 但是,如果我这样做,屏幕是完全黑色的。Segue to ABPersonViewController in Storyboard
如果我使用一个IBAction
的按钮,使用下面的代码它的工作原理:
ABPersonViewController *person = [[ABPersonViewController alloc]init];
[self.navigationController pushViewController:person animated:YES];
这是为什么?我做错了吗?
编辑:我发现了一个解决办法,但我不认为这是一个正确的方法来做到这一点。我子类ABPersonViewControlle
r和推翻了initWithCoder
方法有以下:
-(id)initWithCoder:(NSCoder *)aDecoder{
self = [self initWithNibName:nil bundle:nil];
return self;
}
您是否为触发的特定按钮添加了动作?你如何呈现视图控制器? – Meera
[Display ABPeoplePickerNavigationController using storyboard segue]的可能重复(http://stackoverflow.com/questions/8953080/display-abpeoplepickernavigationcontroller-using-storyboard-segue) – Marco