如何防止iOS键盘在WKWebView上推出导航栏
如何防止iOS键盘在WKWebView上推出导航栏?在Android上,此问题不会发生,但是在iOS上确实如此。请参阅这些 images
How do I prevent iOS Keyboard from pushing up the navigation bar on a WKwebView?On android this problem doesn't happen but on iOS it does. Please refer to these images
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里,层次结构应该是
您可以分配
uinavigationController
为uiwindow的孩子
rootviewController,如果您有此,则您的
uiview> uiviewController
将是uinavigation controller的孩子
以及您的滚动视图或重新安排任何UI元素的逻辑不会影响uinavigationbar
可见性,直到您手动设置它为止。一旦具有层次结构,您就可以访问
uinavigationbar
作为self.navigationbar
Here, hierarchy should be
You can assign
UINavigationController
as child ofUIWindow
rootViewControllerWhen you have this, your
UIViewController
will be child ofUINavigationController
and your logic of scrolling view or rearranging any UI elements will not effect theUINavigationBar
visibility until you manually set it.Once you have above hierarchy, you can access
UINavigationBar
asself.navigationBar