隐藏导航栏,UIWebview未覆盖顶部状态栏
解决方法:
if (@available(iOS 11.0, *)) {
self.webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.edgesForExtendedLayout = UIRectEdgeNone;
}
隐藏导航栏,UIWebview未覆盖顶部状态栏
解决方法:
if (@available(iOS 11.0, *)) {
self.webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.edgesForExtendedLayout = UIRectEdgeNone;
}
本文标题:UIWebview未覆盖顶部状态栏
本文链接:https://www.haomeiwen.com/subject/btmtiftx.html
网友评论