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

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和代码中都设置了代理,并且还是对不同对象设置代理,不说了,上图

[YFHomeViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x79_第1张图片


好吧,删掉了storyBoard中的代理就好了,毕竟我的代理方法是写在tableView中的,而不是控制器中

你可能感兴趣的:(对象,ios开发,UITableView)