ios - 导航栏未正确显示(显示为浮动而不是修复栏)
解决方案
在 iOS 13 或更高版本上,您必须在呈现之前将UIViewController 设置为modalPresentationStyle
。.fullScreen
例如:
let viewController = UIViewController()
viewController.modalPresentationStyle = .fullScreen
present(viewController, animated: true, completion: nil)
您必须为您呈现的每个 ViewController 执行此操作。
推荐阅读
- postgresql - 出现错误:ValueError:不支持的格式字符:'('
- macos - DevTools 在 Intellij 中重新启动两次
- ios - 无法将我的 iOS 应用程序与 Crashlytics 同步
- pulseaudio - 如何在 pulseaudio 上远程管理音量
- javascript - Node.js - 如何获取远程音频文件的持续时间?
- android - 如何使用 kotlin 在 android 上处理后退按钮 DrawerNavigation
- python - ruamel.yaml 安装另一个 python 包的问题
- kotlin - 如何为相同的资源使用多个路由
- javascript - 如何根据列表中的项目数多次显示通知
- python - 格式化文档名称