【发布时间】:2021-08-24 21:20:17
【问题描述】:
我有一个只有 webview 的视图控制器,并且我对顶部、前导、尾随的约束为零。
当我以全屏显示视图控制器时,Webview 位于导航栏下方。(在 iOS 13 以上,但在 iOS 12 时显示正常)
let rootViewController = NavigationController(rootViewController: myViewController)
rootViewController.modalPresentationStyle = .fullScreen
initiatingViewController.present(rootViewController, animated: true)
我尝试将顶部约束设置为 44,但仍然无法正常工作。
请大家多多指教
【问题讨论】:
-
附上它在应用上的样子的图片,最好是更多代码。
标签: ios swift uinavigationbar wkwebview