美文网首页
Assertion failure in -[UITableVi

Assertion failure in -[UITableVi

作者: MdWhat | 来源:发表于2016-07-18 22:45 被阅读224次

    1、错误:tableView。

    Assertion failurein-[UITableView-configureCellForDisplay:forIndexPath:]

    2、原因:tableView的如下数据源方法返回了一个空值。

    - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath  {

                   return   nil;

    }

    3、解决:返回一个cell

    相关文章

      网友评论

          本文标题:Assertion failure in -[UITableVi

          本文链接:https://www.haomeiwen.com/subject/ixkmjttx.html