开发者

UISplitView as something other than the root view

开发者 https://www.devze.com 2023-03-03 02:51 出处:网络
I want to use the UISplitView开发者_StackOverflowController in my app but not as the root view for my app. i want there to be several other screens before the one that uses the split view (ie login).

I want to use the UISplitView开发者_StackOverflowController in my app but not as the root view for my app. i want there to be several other screens before the one that uses the split view (ie login). the problem is that all the examples i can find have the UISplitViewController set as the root view for the app and i just cant seem to figure out how to make it as the controller for another screen.


A couple options I can think of:

1) Have the pre-split view screens be on top of the split view, then when you are done with the login process, hide them.

2) When you are done with the login process, make the split view then and set it as the root view controller of the main window. According to the UIWindow documentation, if you set the rootViewController property on a window with an existing view hierarchy, it removes the old views and installs the new ones.

0

精彩评论

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

关注公众号