Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to pass parameters to a popover view controller inside a navigation controller
    text
    copied!<p>I have an iPad app with splitview and a right bar button in the navigation bar of the detailviewcontroller.</p> <p>This button calls a popover constituted of a navigation controller and two table views. as shown in the following picture</p> <p><img src="https://i.stack.imgur.com/jklWi.png" alt="enter image description here"></p> <p>As the storyboard is small on the picture I add some explanation. The White controller is the detailViewController (right hand side of the splitviewcontroller), which is inside a navigtion controller. The three views on the right side of the white view are from left to right : navigationController, firstTableView, secondTableView.</p> <p>My problem is that I need to pass parameters to the first table view to configure it correctly.</p> <p>I use to do it like that when view controller were sharing the same navigation controller.</p> <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if([[segue identifier] isEqualToString:@"popoverButtonSegue"]){ MyPopoverFirstTableViewController *popoverFirstTVC = [[MyPopoverFirstTableViewController alloc] init]; popoverFirstTVC = segue.destinationViewController; popoverFirstTVC.property1 = aProperty1; popoverFirstTVC.property2 = aProperty2; } } </code></pre> <p>My Problem is that I get an error doing this because the destination controller is not my popoverFirstTableViewController but the NavigationController and the navigation controller of course does not haver "property1" and "property2".</p> <p>Perhaps it's a basic question but I am stuck here.</p> <p>How do I do to configure my tableview by assigning some of its properties I have defined when this table is inside a navigation controller ?</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