English 中文(简体)
如何根据用户选择假象?
原标题:How to select Scene (UIStoryBoard) depending on user?

I am using Storyboards.。 Basically my app is about

On first launch 。 -You get a naviguation controller + view controller (let s call it View A) 。 -You are asked to log in 。 On other launch 。 -You still get a nav controller but。 -If you are logged, I want to get immediately to a new view (let s call it View B)。 -If you are not logged, I want to show back View A

How do I do this。 if(logged in) show View B。 else if(not logged in) show View A。 With .xib, this isn t too difficult, but with Storyboards, I really don t know how to get this working ? 。 Thanks !

最佳回答

在这里,你可以做些什么,即,如果是最好的,那么你可以这样认为。 B 作为你的主要观点和你的开场白,最初就会产生B->的先期。 这将使你有机会控制你们的2个看法,然后检查用户是否gged,如果用户已经gged住了眼光,则检查。 如果不允许用户登录,那么用户就会消失。

或者你可以采取不同的做法,你可以提出另一种看法,即: C,从这一观点中产生2个gues,以控制观察负荷作业。

希望这将有助于。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签