如圖,webview布局沒問題孟抗,但是WKContentView 底部不對(duì)齊;
解決辦法
if (@available(iOS 11.0, *)) {
self.contentWebView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.edgesForExtendedLayout = UIRectEdgeNone;
}