Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]

作者: shaneZhang 分类: ios技术 发布时间: 2014-04-19 10:56

今天遇到了Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]这个错误,一直也没有百度,不料想却弄了一个下午,唉,早知道就百度一下了,呵呵。

遇到这个问题的原因是tableView的这个方法返回了空的值,所以出错了

-(UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
这个函数的返回值是个null!!
That's probably why [UITableView _configureCellForDisplay:forIndexPath:] is failing... becausecellForRowAtIndexPath is returning a null value and then configureCellForDisplay is expecting aUITableViewCell.

本页面支持繁体中文友好显示:Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注