视图以模态显示,而不是普通视图

问题描述

我将Views与seague关联起来,然后显示。它没有模态地点击。为什么它仍然向他们显示而不是全屏显示?

enter image description here

解决方法

只需将modalPresentationStyle设置为fullScreen

override func viewDidLoad() {
    super.viewDidLoad()
    modalPresentationStyle = .fullScreen
}

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...