拆分视图控制器不作为根视图控制器 [英] Split View Controller not as a Root View Controller

查看:100
本文介绍了拆分视图控制器不作为根视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,要求用户登录。用户登录后,我想使用Split View Controller来显示数据。诀窍是,Apple不希望我推送 SplitViewController ,因为他们希望它成为Root View Controller。从我的角度来看,没关系,但我需要用户先登录。

I have an app that requires user to LOG IN. Once user is logged in, I want to use Split View Controller to display data. The trick is, that Apple doesn't want me to push the SplitViewController, since they want it to be the Root View Controller. From my point of view, it is okay, but I need the user to log in first.

任何人都知道任何解决方法除了创建我自己的 SplitViewController -like VC?

Anybody knows any workaround except creating my own SplitViewController-like VC?

推荐答案

您仍然可以更改根视图控制器,如果你需要。您最初可以将根视图控制器设置为显示登录屏幕,然后将其替换为拆分视图控制器。或者,您可以在分割视图控制器的顶部以模态方式显示登录屏幕。

You can still change the root view controller if you need to. You can initially set the root view controller to show your login screen, and then replace it with the split view controller. Alternatively, you could present your login screen modally over the top of the split view controller.

这篇关于拆分视图控制器不作为根视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆