ios - ios 11/xcode 9 上的 UIWebView 灰色空间上边距

标签 ios xcode uiwebview

enter image description here

enter image description here

自更新到 ios 11 和 xcode 9 后,我无法从 View 顶部显示 html 内容。 好像 uiwebview 有 20 像素的插入边距

有人知道怎么解决吗?

谢谢

最佳答案

这解决了问题

[self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];

引用: How to get rid of the status bar background on the UIWebView?

关于ios - ios 11/xcode 9 上的 UIWebView 灰色空间上边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45214105/

相关文章:

xcode - Xcode 中的多行注释

html - iOS UIWebView 强制图像大小 objective-c Xcode

iphone - iOS 5 的 Messages.app 键盘附件 View 行为

ios - 苹果Mapkit : Map doesn't start with my given coordinates

ios - UICollectionViewCell 背景颜色更改适用于 cellForItemAtIndexPath 但不适用于 didSelectItemAtIndexPath

ios - 核心数据 IOS : How to create an object with values without it being marked as having changes

iphone - iOS 中的动画文本

xcode - 在 Xcode 安装的 git 中禁用 osxkeychain 凭证助手

javascript - 如何在 UIWebView 加载请求之前设置 sessionStorage?

iphone - 在 UIWebView 中注释文本