IOS MJRefresh 适配iPhone X

1.全局适配

在AppDelegate.m 中 方法 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;加入这一句

if (@available(iOS 11.0, *)){
        [[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
    }

你可能感兴趣的:(IOS MJRefresh 适配iPhone X)