开发者

If Condition Is Met, Move To Different View...

开发者 https://www.devze.com 2023-03-23 10:22 出处:网络
How can I push to a different view if a condition is met? Basically, I need to go to a different view controllerSetupViewController on the very first load (which is something that is lo开发者_如何学Py

How can I push to a different view if a condition is met? Basically, I need to go to a different view controllerSetupViewController on the very first load (which is something that is lo开发者_如何学Pythongged in NSUserDefaults).

Thanks


The exact method will depend on whether you're using IB or building your UI programmatically. Can you give me some implementation details?

If you're working through IB, you'll have to make sure the UIWindow.xib doesn't point to a view controller, and you'll have to set it on start. Basically, you're going to set the UIWindow's rootViewController on start of your app.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号