Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]
出现这个报错,注册cell应该放在最前面。

注册的cell的方法需要放在,self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;前面
[self.tableView registerClass:[SelectionHotCell class] forCellReuseIdentifier:@"SelectionHotCell"];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
网友评论