【iOS】iOS11.0 ScrollerView 适配

来源:互联网 发布:此网络受法律保护 编辑:程序博客网 时间:2024/05/20 03:45

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

原创粉丝点击