我正在尝试从按钮的 IBAction 推送视图,但出现以下错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WebView initWithCoder:]: unrecognized selector sent to instance 0x68902b0'
代码:
-(IBAction)showWebsite:(id)sender {
NSLog(@"Web View!!!");
UIStoryboard* sb = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController* vc = [sb instantiateViewControllerWithIdentifier:@"web"];
[self.navigationController pushViewController:vc animated:YES];
知道可能出了什么问题吗?_(IBAction) 连接到TouchUpInside