I basically have a splitview controller and immediately I would like to show a popup modal view controller.
I have wired up the UISplitView class with a modal segue to my other view controller (LoginView, just a straight UIViewController subclass) I basically just want to show that on load and I’m pretty sure I shouldn’t do this in the app delegate (however I could be wrong)
I want to do it with a
[something performSegueWithIdentifier:@"login" sender:something];
Where should I put it and what should I connect the segue to (I swear I have tried every different combination haha!)
(I’m using the universal master-detail view starting project from Xcode 4.2)
I would display this from your initial detail view controller (the right pane of your split view) since it will always be sent a
-viewDidAppear:message regardless of launch orientation.In your
-viewDidAppear:method, have the split view controller present the modal controller. Each view controller in a split view controller will already have itssplitViewControllerproperty set. Ensure that your segue is connected from the split view controller (not one of its child view controllers) to the login view controller.