简体   繁体   English

如何不显示查看 Controller 模态

[英]How to not present View Controller Modally

在此处输入图像描述 酸碱度 I am trying to present a home screen when user logs in (or has previously logged in).我试图在用户登录(或以前登录)时显示主屏幕。 The home screen is being displayed, but modally.正在显示主屏幕,但以模态方式显示。 How do I display it normally?如何正常显示?

Example:例子:

        if UserDefaults.standard.string(forKey: "appleAuthorizedUserIdKey") != nil {
                // move to main view
            performSegue(withIdentifier: "LogIn", sender: nil)

And the segue kind is set to 'show' in storyboard.在 storyboard 中,segue 类型设置为“显示”。 Thanks.谢谢。

You controller from where you are performing segue needs to be embed in UINavigationController to show it Normally otherwise it will show it modally你 controller 从你执行 segue 的地方需要嵌入UINavigationController以显示它通常否则它将以模态方式显示它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在应用程序启动时以模态方式呈现View Controller? - How to present View Controller modally on app launch? 如何呈现动作表以模态呈现的View Controller? - How to present action sheet form a View Controller that present modally? 如何以模态方式呈现嵌入导航控制器中的视图控制器? - How to present view controller embedded in navigation controller modally? 如何在选项卡栏项目上轻按以方式显示View Controller - How to modally present a View Controller on tap of tab bar item 如何以编程方式以模态方式呈现视图 controller? - How can I programmatically present a view controller modally? 如何在以模态显示的视图控制器上执行当前模态搜索? - How can I perform a present modally segue on a view controller that is presented modally? 从标签栏控制器以模态方式呈现视图 - Present a View modally from a tab bar controller 从xib文件以模态形式显示View Controller - Present View Controller modally from xib file ``当前模态''视图控制器中的滚动视图不起作用 - Scrollview in 'present modally' view controller not working 以模态方式呈现视图控制器,就像MFMailComposer一样 - present a view controller modally, just like MFMailComposer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM