如何在UIScrollview(iOS 11,iPhoneX)上摆脱safeAreaInsets

Aam*_*irR 1 uiscrollview ios ios11 iphone-x

我有一个水平分页UIScrollview,以下是我的VFL前导/尾随约束H:|-0-[ScrollView]-0-|(与superview对齐).

safeAreaInsets在iPhone X中左/右横向.

这是一个错误吗?或者我错过任何Apple方式,当我们不需要时,这些插入不会被应用?

Aam*_*irR 6

我使用以下内容跳过内容插入调整:

UIScrollview.contentInsetAdjustmentBehavior = .never
Run Code Online (Sandbox Code Playgroud)

我发现在iOS 11中UIScrollViewContentInsetAdjustmentBehavior.always包含安全区域布局指南并将这些边距应用为插图,因此尝试了.never它的工作))