Search code examples
uitabbarcontrolleruisplitviewcontrolleripadpopover

TabBar inside detail view of SplitViewController.


I am trying to embed a Tabbar in the Detail side of a Split View Controller. The way I have done is that in the Storyboard I have the TabBarController as the DetailViewController and from there I have a couple of Navigation Controllers hooked to views ( separate tabs which are of type DetailViewController).

The problem I am facing is that out of two tabs which I have added, only one tab shows the button for showing the Master view in the Portrait mode.

I am new to iOS development, and would deeply appreciate any help towards solving this.

Thank you for your time.


Solution

  • From the documentation for the UITabBarController: "When deploying a tab bar interface, you must install this view as the root of your window. Unlike other view controllers, a tab bar interface should never be installed as a child of another view controller."

    http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UITabBarController_Class/Reference/Reference.html