美文网首页
UITableView 组头没有顶到最上面去

UITableView 组头没有顶到最上面去

作者: Kakarot001 | 来源:发表于2023-02-07 17:33 被阅读0次

if(@available(iOS15, *)) {

        [[UITableView appearance] setSectionHeaderTopPadding:CGFLOAT_MIN];

        // 解决 开启异步绘制 tableview 刷新闪动问题 ,关闭 UITableView Prefetching 的 iOS 15 新特性

        [[UITableView appearance] setPrefetchingEnabled:NO];

    }

相关文章

网友评论

      本文标题:UITableView 组头没有顶到最上面去

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