Note that there are some explanatory texts on larger screens.

plurals
  1. POpopviewcontroller does nothing, doesn't work
    primarykey
    data
    text
    <p>I'm trying to go back into a ViewController using popoverviewcontroller, but nothing happens. <br/> First, I'm loading the first ViewController, in the AppDelegate, with this code:</p> <pre><code>UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:self.welcomeMenu]; nav.navigationBarHidden = YES; self.window.rootViewController = nav; nav = nil; </code></pre> <p>The navigationBar is hidden because I need it in that way <br/> In this ViewController, I'm showing a menu with buttons, then, to show another ViewController, I'm using this code:</p> <pre><code>SecondViewController *secView = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:0.75]; [self.navigationController pushViewController:secView animated:NO]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO]; [UIView commitAnimations]; secView = nil; </code></pre> <p>And the SecondViewController loads (but the rotation doesn't work)... <br/> My SecondViewController adds in code a SplitViewController (with a NavigationController for the Table on the left, and another NavigationController for another table on the right) <br/> Then, in the SecondViewController, I'm adding manually a button to go back, using this code:</p> <pre><code>[self.navigationController popViewControllerAnimated:NO]; </code></pre> <p>but nothing happens... When I print self.navigationController, the output is (null), so I guess this is the problem, but why my self.navigationController is null? And What I need to do to pop correctly?<br/> If I don't hide the navigationBar in the AppDelegate code, the backButton that appears automatically works fine, but when I want to do it, manually, does not work...</p>
    singulars
    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.
    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