iOS -[UITableView dequeueReusabl
2017-10-09 本文已影响36人
天下只有一个
Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]
出现这个报错,注册cell应该放在最前面。
注册的cell的方法需要放在,self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;前面
[self.tableView registerClass:[SelectionHotCell class] forCellReuseIdentifier:@"SelectionHotCell"];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;