美文网首页
Assertion failure in -[UISection

Assertion failure in -[UISection

作者: 落寒z | 来源:发表于2018-08-30 11:21 被阅读11次

在系统11上运行没问题, 系统10.3.3 xcode9 报错.
解决办法
1 注释掉下面代码, 使用代理实现

    tableView.sectionFooterHeight = 0.1;
    tableView.sectionHeaderHeight = 0.1;
    tableView.estimatedSectionHeaderHeight = 0.1;
    tableView.estimatedSectionFooterHeight = 0.1;

2 或者把0.1 改成大于1的任意数都可以, 1.1 , 1.5
3 或者把0.1 改成0

相关文章

网友评论

      本文标题:Assertion failure in -[UISection

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