美文网首页
解决UITableView界面刷新时回弹

解决UITableView界面刷新时回弹

作者: 异乡人_4f2a | 来源:发表于2019-01-15 20:47 被阅读0次

UITableView界面刷新时回弹的效果在iOS 11后出现,所以需要在didFinishLaunchingWithOptions代理方法或是当前UITableView界面中增加以下方法即可:

if(@available(iOS 11.0,*)){

        UITableView.appearance.estimatedRowHeight = 0;

        UITableView.appearance.estimatedSectionFooterHeight = 0;

        UITableView.appearance.estimatedSectionHeaderHeight = 0;

    }

相关文章

网友评论

      本文标题:解决UITableView界面刷新时回弹

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