Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Multiple Detail Views with Split View Controller

As you know, a UISplitViewController has one root controller and one detail view controller only, but I want to use another detail view controller.

When I select the list items from the root controller (popover controller), the selection should fire different detail views -- i.e., row1 fires detail view1, row2 fires detail view2 and a button item fires detail view3, etc. How can I achieve this?

like image 400
erguvani Avatar asked Oct 02 '11 16:10

erguvani


1 Answers

That project from Apple is from 2012 and doesn't use storyboards. If you are looking for a non-storyboarded solution, it will work fine but in Xcode 6 you should be taking advantage of the new Show Detail segue in storyboards.

Here's a quick example project that shows how to use multiple detail view controllers on the same split view by using the Show Detail segue from the Master View Controller.

like image 165
Travis M. Avatar answered Nov 15 '22 07:11

Travis M.