Note that there are some explanatory texts on larger screens.

plurals
  1. POTwo UISplitViewControllers, 1 (Shared) Detail View
    primarykey
    data
    text
    <p>To set the scene I have:</p> <ul> <li>A Tab View Controller with 2 tabs </li> <li>Each tab has a Split View Controller </li> <li>I'd like to point the Detail view of each Split View Controller to the SAME view.</li> </ul> <p>I've attached a very simple <a href="http://www.timroadley.com/Files/Shared%20Detail%20View.zip" rel="noreferrer">sample project showing the issue</a>.</p> <p>Run it in the iPad 5.1 Sim, observe each tab. One shows the shared detail view, one fails.</p> <p>NSLog debugging reports that the second split view has a NULL detail view controller:</p> <pre> 2012-04-28 07:21:55.451 svcTest[14597:f803] tabBarController viewControllers = ( "UISplitViewController: 0x6a36100", "UISplitViewController: 0x6a39ab0" ) 2012-04-28 07:21:55.455 svcTest[14597:f803] svcA.viewControllers = ( "UINavigationController: 0x6a36250", "UIViewController: 0x6a38720" ) 2012-04-28 07:21:55.457 svcTest[14597:f803] svcB.viewControllers = ( "UINavigationController: 0x6a39cc0" ) </pre> <p>When you click the second tab you get this error:</p> <pre>2012-04-28 07:22:58.457 svcTest[14597:f803] Splitview controller is expected to have a detail children before its used! 2012-04-28 07:22:58.459 svcTest[14597:f803] Split view controller should have its children set before layout!</pre> <p>Looking at the storyboard I have already set the detail views so this really confuses me.</p> <p><img src="https://i.stack.imgur.com/In5Wh.png" alt="Storyboard"></p> <p>Any help getting this 'shared' view to show up on each tab is much appreciated.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload