Search code examples
iphoneipadios5uisplitviewcontroller

MGSplitViewController with Navigation Controller on detail side


I am currently working on MGSplitViewController .So in this custom split view controller the root view controller is already present in side a navigation controller (MainWindow.xib) but my main aim is to get the MGSplitViewController working with a NavigationController in the details side also?

How can i do it, can anybody able to achieve this ?


Solution

  • I do that in one project.

    Put a UINavigationController into MainWindow.xib and have it contain your normal detail controller. (You can either configure the detail controller directly or tell it to reference another xib file.) Link the detailViewController outlet in MGSplitViewController to your detail navigation controller.

    Let me know if some part of that is giving you trouble.