iOS tableView铺满屏幕

2020-04-27  本文已影响0人  fordG

需求铺满全屏幕

image.png
if #available(iOS 11.0, *){
            UIScrollView.appearance().contentInsetAdjustmentBehavior = .never;
        }else{
            UIScrollView.appearance().automaticallyAdjustsScrollIndicatorInsets = false;
        }

override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        table.frame = view.bounds
    }
if #available(iOS 11.0, *){
            UIScrollView.appearance().contentInsetAdjustmentBehavior = .never;
        }else{
            UIScrollView.appearance().automaticallyAdjustsScrollIndicatorInsets = false;
        }
上一篇 下一篇

猜你喜欢

热点阅读