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

来源:互联网 发布:希拉里失败 知乎 编辑:程序博客网 时间:2024/06/07 21:09

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中的,而不是控制器中

0 0
原创粉丝点击