您的位置:首页 > 其它

[YFHomeViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x79

2015-03-31 16:20 405 查看
2015-03-31 16:19:14.422 YFFamilyMall[2839:132453] -[YFHomeViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7977d420
2015-03-31 16:19:14.446 YFFamilyMall[2839:132453] +[CATransaction synchronize] called within transaction
2015-03-31 16:19:14.446 YFFamilyMall[2839:132453] +[CATransaction synchronize] called within transaction
2015-03-31 16:19:14.448 YFFamilyMall[2839:132453] -[YFHomeViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7977d420
libc++abi.dylib: terminate_handler unexpectedly threw an exception

闲来无事想创建一个UITableView,结果报错了,原因:在storyboard和代码中都设置了代理,并且还是对不同对象设置代理,不说了,上图





好吧,删掉了storyBoard中的代理就好了,毕竟我的代理方法是写在tableView中的,而不是控制器中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐