Using splitviewcontroller on iPhone portrays detail view first

ios, iphone, objective-c, uisplitviewcontroller

Solution

It is probably an error due to the `SplitViewController` being just exclusive to the iPad. Also when you have it in the portrait orientation, it displays the detail view by default and the master view will show as a bar. You will have to change it using some method like `splitViewController:shouldHideViewController:inOrientation`

Here is an Apple document referring your problem

https://developer.apple.com/library/ios/documentation/uikit/reference/UISplitViewController_class/Reference/Reference.html

I hope this helps!

Problem

I'm currently developing for iOS 8 and developing an app with the new adaptive framework. The weird part is when I use the the splitviewcontroller on iPhone with this storyboard configuration the app does not start with the master view controller but the detail controller. Is this a bug and how could I be able to fix it? This does only happen if the navigationController that envelops the master exists, if I remove it the app starts with master controller.

Original source

Related problems