UIScrollView或者其子类 顶部多出20px

backScro//滑动视图

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

        self.backScro.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

    }else{

        self.automaticallyAdjustsScrollViewInsets =NO;

    }

你可能感兴趣的:(UIScrollView或者其子类 顶部多出20px)