1

I'm trying to build a universal iOS app. So, in Xcode I started with a Master-Detail template.

In the iPhone version of this, my first view is a list of items, and I have a "Logout" button in my Navigation Bar. When the user launches for the first time, a view-controller is presented, modally, on top of my normal "master" view. It just asks for a user/pass, lets the user log in. If the user hits the "Logout" button, some cleanup occurs, and then they are presented with the Login screen again.

On the iPad side of things, I'd like to have a UISplitViewController - as that interface matches well with what I'm trying to do. I'd like to do this in a similar fashion -- present the user with Login the first time they launch. Then later on, if they decide to leave the app, they can hit Logout, and be presented with Login options again.

I'd prefer to cover the entire screen with one view (just user/pass/login button), but am having trouble figuring that out, especially if the "master" view is visible.

So, the question is this: what is the preferred way to show a login screen, with a UISplitViewController in the mix, so that the user can't do anything else but login?

4

1 回答 1

0

这听起来确实像是个人选择/设计决定。

您可以将“主”视图设置为登录屏幕,而将“详细信息”设置为启动屏幕或显示“请登录”的可爱小猫照片

您还可以将单个 UIView 作为“初始”视图页面并将该 segue 放入 splitview

我认为你对它的“如何”很开放,所以也许我不太理解你的问题。

于 2013-04-05T20:41:45.190 回答