劃重點:iOS10系統(tǒng)絕對是我遇見出問題最多的系統(tǒng);塘搿F剂摹弊予!
代碼中創(chuàng)建一個tableView的時候寫了
self.tableView.estimatedSectionHeaderHeight = CGFLOAT_MIN;
self.tableView.estimatedSectionFooterHeight = CGFLOAT_MIN;
然后在tableView的代理方法中繼續(xù)寫了
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return CGFLOAT_MIN;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return CGFLOAT_MIN;
}
iOS10系統(tǒng)的手機上聊替,在進入這個tableView所在控制器的時候楼肪,會出現(xiàn)閃退(其他機型正常)。log打尤乔摹:
Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:]
解決: 注釋掉了
// self.tableView.estimatedSectionHeaderHeight = CGFLOAT_MIN;
// self.tableView.estimatedSectionFooterHeight = CGFLOAT_MIN;
這兩行代碼春叫,然后閃退消失。