美文网首页
Swift -[UISectionRowData refresh

Swift -[UISectionRowData refresh

作者: HappyJiuOk | 来源:发表于2020-08-29 11:19 被阅读0次

    出现系统:iOS10.x.x
    出现原因:
    1.代码实现了

    UITableView.appearance().estimatedRowHeight = 0
    UITableView.appearance().estimatedSectionFooterHeight = 0
    UITableView.appearance().estimatedSectionFooterHeight = 0
    

    却未包含在if #available(iOS 11.0, *) {}
    2.同时storyboard或者xib 上的UITableView 勾选了estimatedRowHeight 这个选项

    estimatedRowHeight
    解决办法:
    if #available(iOS 11.0, *) {
       UITableView.appearance().estimatedRowHeight = 0
       UITableView.appearance().estimatedSectionFooterHeight = 0
       UITableView.appearance().estimatedSectionFooterHeight = 0
    }
    

    相关文章

      网友评论

          本文标题:Swift -[UISectionRowData refresh

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