[ios] tableView:cellForRowAtIndexPath: unrecognized selector sent to instance
2015-03-24 15:00
796 查看
问题代码
nextViewController = [storyboard instantiateViewControllerWithIdentifier:NEXT_VIEW_ID]; [navigationController setViewControllers:[NSArray arrayWithObjects:nextViewController, nil] animated:YES];
问题原因
当在当前页面使用上述代码跳转到 nextViewController 的时候,有另一个活动的有同一个 id 为 NEXT_VIEW_ID 的ViewController,nextViewController初始化失败,程序报错解决方案
nextViewController = [storyboard instantiateViewControllerWithIdentifier:NEXT_VIEW_ID]; [navigationController pushViewController:nextViewController animated:YES];
相关文章推荐
- IOS TableView 报异常,unrecognized selector sent to instance(个人)
- 学习ios碰到[UITableViewCellContentView setImage:]: unrecognized selector sent to instance 0x7fa450440dc0
- iOS 错误[UITableViewCellContentView setText:]: unrecognized selector sent to instance 0x7fb3a9c300d0'
- iOS错误提示:-[UITextSelectionView chatTextViewTextChange]: unrecognized selector sent to instance 0x7f
- tableview 出现unrecognized selector sent to instance的解决办法
- [iOS]错误提示:-[UITextSelectionView chatTextViewTextChange]: unrecognized selector sent to instance 0x7f
- [YFHomeViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x79
- ios- -[__NSCFType invalidate]: unrecognized selector sent to instance 0x18894a30错误随笔
- -[UIWindow viewForFirstBaselineLayout]: unrecognized selector sent to instance
- iOS reason: '-[__NSArrayM objectForKeyedSubscript:]: unrecognized selector sent to instance 0x60800
- iOS错误处理之[__NSArrayM 某一方法名:]: unrecognized selector sent to instance
- [UIImageView setImageWithURL:]: unrecognized selector sent to instance解决办法
- -[UITextTapRecognizer velocityInView:]: unrecognized selector sent to instance 0x6080003c3a20
- reason: -[UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance
- iOS BUG收集: -[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance
- IOS 错误 [UIWebView cut:]: unrecognized selector sent to instance
- [UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance
- iOS:编译错误[__NSCFNumber length]: unrecognized selector sent to instance 0x8b3c310’ - andy_shen
- IOS:unrecognized selector sent to instance
- 【ios 异常FAQ】unrecognized selector sent to instance