iOS11 适配utomaticallyAdjustsScrollViewInsets

self.view.backgroundColor = WWGlobalBg;

    if (WWSystemVersion < 11.0) {

        self.automaticallyAdjustsScrollViewInsets = NO;

    }

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

        [[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];

    }

你可能感兴趣的:(iOS,iOS开发)