How to use the catagory separate viewController TableView dataSource and Delegate?
**我通过类目方式已经把tableView里面的dataSourece分离出来了,,可是为什么还报错?
求科普!**
viewController
category类目文件
你需要 import OneViewController+TableView.h
另外你可以看看楼上的文章
继承NSObject@interface ShopTableViewProtocol : NSObject<UITableViewDelegate, UITableViewDataSource>
顺便推荐更轻量的 View Controllers
整洁的 Table View 代码
objccn上两篇说tableview分离的文章,写的很不错还有demo。