1.把cell的identifier标识定义为静态常量
static NSString *const CategoryId = @"category";
2.在viewDidLoad方法里注册
// 注册cell
[self.categoryTableView registerNib:[UINib nibWithNibName:NSStringFromClass([RecommendCategoryCell class]) bundle:nil] forCellReuseIdentifier:CategoryId];
3.在UITableView返回cell的代理方法中,从缓存池取出cell
[tableView dequeueReusableCellWithIdentifier:CategoryId];