添加一句代码即可:if (@available(iOS 11, *)) { [UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
添加一句代码即可:if (@available(iOS 11, *)) { [UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
本文标题:适配iOS11 pop回去UIScrollView滑动错乱问题。
本文链接:https://www.haomeiwen.com/subject/mrerpxtx.html
网友评论