xcode - webview 内容显示在状态栏中 [英] xcode - webview content is showing in status bar
本文介绍了xcode - webview 内容显示在状态栏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个 webview 应用程序,它只加载我们的网站.我注意到如果向下滚动页面,网站的内容会显示在状态栏中.这是默认的 iOS 浏览器行为还是我可以解决这个问题?
解决方案
您需要将顶部约束(带有网站的控制器)添加到安全区域.我希望它能解决你的问题
已编辑
这是如何完成的详细屏幕截图:(另外,关于约束,请检查这个
I am developing a webview app, which just loads our website. I noticed that the content of the website is showing in the status bar if you scroll down the page. Is this default iOS browser behaviour or can I fix this?
解决方案
You need to add your top constraint (a controller with web site) to the safe area. I hope it will fix your problem
EDITED
Here is detailed screenshot how it's can be done: (also, about constraints, check this documentation)
这篇关于xcode - webview 内容显示在状态栏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文