ViewController未按预期执行segue

问题描述 投票:0回答:1

安装Xcode 11之后,我开始面对这个问题。我试图在按钮单击事件上从LandingViewController切换到LoginViewController。视图控制器未全屏加载,并显示为弹出窗口。

我尝试实例化VC,但仍然没有运气。我也尝试直接将“登录”按钮和vc链接起来,但仍然失败。

 self.performSegue(withIdentifier: "1", sender: nil)

segued vc -1

segued vc -2

swift uiviewcontroller segue uistoryboardsegue
1个回答
0
投票

自iOS 13起,默认演示模式不再是全屏显示。如果仍然要使用全屏模式,请转到InterfaceBuilder并将ViewController的显示方式设置为Full Screen

Fullscreen setting

© www.soinside.com 2019 - 2024. All rights reserved.