代码改变生活

Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]

今天做一个tableView动态单元格遇到一个这么个问题。
 Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit_Sim/...
因为
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath     *)indexPath
这个函数的返回值是个null!!!
原因是ID没有配置正确我在custom Class下面配置了identity ID 应该在TableView Cell 下面配置identifier 为指定ID
identity 身份
identifier 标识

posted on 2015-06-05 16:20  张大少。  阅读(765)  评论(0编辑  收藏  举报

导航

繁星纵变 智慧永恒