我要实现在点击webview上的某个html标签之后,跳到另个页面
AlarmManageViewController * vc =[[AlarmManageViewController alloc]initWithNibName:nil bundle:nil];
vc.audioName = self.audioName;
[self.navigationController pushViewController:vc animated:YES];
报错信息如下
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
查了很久以为是webview的问题
最后在stackover上看到
报这个错的原因是:跳到的那个页面的某个数组,或者dictionary为nil导致的
stackover上的帖子链接:http://stackoverflow.com/questions/7883899/ios-5-uiwebview-delegate-webkit-discarded-an-uncaught-exception-in-the-webview