Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:]

Assertion failure in [UISectionRowData refreshWithSection:tableView:tableViewRowData:],
/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.9.1/UITableViewRowData.m:443

在iOS 11上运行没问题, iOS 10 报错.

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

解决办法:
1 、注释掉以上代码, 用代理实现;
2、把0.1 改成大于1的任意数都可以, 1.1 , 1.5 ;
3、把0.1 改成0。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容