Note that there are some explanatory texts on larger screens.

plurals
  1. POUISpliViewController DetailView disappears after rotation
    primarykey
    data
    text
    <p>I have a issue with the UIViewController, please first read before you answer, it is more complicated than it seems. Without Changing the super UIViewController rotation works without problems!</p> <p>I have a UISplitViewController in Portrait orientation, than i klick on the Button to show the UIPopoverController <img src="https://i.stack.imgur.com/7koV2.jpg" alt="Popover shown"> now i change the UIViewController from UISplitViewC to UITableViewC <img src="https://i.stack.imgur.com/dQkTY.jpg" alt="tableview"> Now i rotate the iPad to Landscape orientation <img src="https://i.stack.imgur.com/Balqp.jpg" alt="tableview landscape"> And finally switch back to the SpliViewController! <img src="https://i.stack.imgur.com/bAj41.jpg" alt="splitviewcontroller landscape"> As you can see, the MasterViewController isn't showed and the NavigationItem doesn't disappear.</p> <p>That brings me to the assumption that the delegate function of the splitview aren't called on the rotation of the UITableViewController (no surprise)</p> <p>How can i handle this issue?</p> <p>Delegate functions</p> <pre><code>- (void)splitViewController: (UISplitViewController*)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem*)barButtonItem forPopoverController: (UIPopoverController*)pc { //debug_NSLog(@"Entering portrait, showing the button: %@", [aViewController class]); barButtonItem.title = @"Akten"; [self.navigationItem setLeftBarButtonItem:barButtonItem animated:YES]; [self setMasterPopover: pc]; } // Called when the view is shown again in the split view, invalidating the button and popover controller. - (void)splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem { //debug_NSLog(@"Entering landscape, hiding the button: %@", [aViewController class]); [self.navigationItem setLeftBarButtonItem:nil animated:NO]; [self setMasterPopover: nil]; } </code></pre> <p>Thanks for your Help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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