解决UITableView界面刷新时回弹

2019-01-15  本文已影响0人  异乡人_4f2a

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

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

        UITableView.appearance.estimatedRowHeight = 0;

        UITableView.appearance.estimatedSectionFooterHeight = 0;

        UITableView.appearance.estimatedSectionHeaderHeight = 0;

    }

上一篇 下一篇

猜你喜欢

热点阅读