I would like to show a login view before a UISplitViewController in my app. I am not sure how to do that as Apple docs regarding iPad says that UISplitViewController should be a root view controller of the app.
A:
Do it in app delegate. Before adding splitviewcontroller.view to your window. You add your login view and after you have successfully logged in remove this logine view and add the splitviewcontroller.view
Madhup
2010-08-31 09:52:32
Hey Madhup I have done in the same way but it seems this approach does not work effectively. As when user logs out of the application I again loads the login view by removing the SplitView from window and adding the login view to the window than in that case application crashes. Please suggest any other way
sandy
2010-08-31 09:59:38
+2
A:
Use a modal view controller to present the login view. You could either do a full-screen view that is presented without animation, or (how I would do it) a form style view that allows the split view controller to be seen but not interacted with.
Brian
2010-08-31 14:18:38