Note that there are some explanatory texts on larger screens.

plurals
  1. POsplitViewController with Two NavigationController linking protocols
    text
    copied!<p><strong>EDIT: Added Source Project</strong></p> <p><a href="http://www.mediafire.com/?49yb2n49cky9tzy" rel="nofollow">--> I uploaded a sample project that clearly shows my dilemma which can be found here &lt;--</a></p> <p>I created a Split View-based Application. I then added a second UINavigationController to the DetailViewController inside the MainWindow.xib.</p> <p>I then pop a new UIViewController Subclasses when a toolbar item is clicked. I use the following code to conduct the pop:</p> <pre><code>DocumentDetailVC *DetailViewController = [[DocumentDetailVC alloc] initWithNibName:@"DocumentDetailVC" bundle:[NSBundle mainBundle]]; [detailViewController.detailNavController pushViewController:DetailViewController animated:YES]; DocumentsVC *RRequestViewController = [[DocumentsVC alloc] initWithNibName:@"DocumentsVC" bundle:[NSBundle mainBundle]]; [self.navigationController pushViewController:RRequestViewController animated:YES]; </code></pre> <p>This works. The issue I am having is how do I pass information or function calls from the Main side of the Split View to the Detail side of the Split view?</p> <p>If I present the UIViewController via the following method:</p> <pre><code>DocumentDetailVC *RRequestViewController = [[DocumentDetailVC alloc] initWithNibName:@"DocumentDetailVC" bundle:[NSBundle mainBundle]]; RRequestViewController.delegate=self; RRequestViewController.modalPresentationStyle = UIModalPresentationCurrentContext; [RRequestViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; [self presentModalViewController:RRequestViewController animated:YES]; [RRequestViewController release]; RRequestViewController = nil; </code></pre> <p>I am able to complete a reach back through a protocol as intended.</p> <p>DocumentDetailVC, when loaded via the pushViewController, the hierarchy is as follows:</p> <pre><code>NSLog([NSString stringWithFormat:@"%@",self]); //self = &lt;DocumentDetailVC: 0x4e0d960&gt; NSLog([NSString stringWithFormat:@"%@",self.parentViewController]); //self.parentViewController = &lt;UINavigationController: 0x4e0ce30&gt; NSLog([NSString stringWithFormat:@"%@",self.parentViewController.parentViewController]); //self.parentViewController.parentViewController = &lt;UISplitViewController: 0x4e0d0f0&gt; </code></pre> <p>Thank you for your assistance. This problem is consuming my life!</p> <p><a href="http://www.mediafire.com/?49yb2n49cky9tzy" rel="nofollow">--> I uploaded a sample project that clearly shows my dilemma which can be found here &lt;--</a></p>
 

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