【发布时间】:2014-05-19 15:47:28
【问题描述】:
我正在使用 tabBarVC 并在其中一个 tabviews 中我想呈现一个视图。我添加了一个按钮。添加此代码:
- (IBAction)showChart:(id)sender {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
woundViewController *privacy = (woundViewController*)[storyboard instantiateViewControllerWithIdentifier:@"privacy"];
// present
[self presentViewController:privacy animated:YES completion:nil];
}
我要展示的新 VC 具有分配给它的标识符“隐私”。
但我收到此错误:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[flipSideViewController _setViewDelegate:]:
【问题讨论】:
标签: ios7 xcode5 presentviewcontroller