Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS presented UINavigationController gets dismissed after it performs a popViewController
    primarykey
    data
    text
    <p>In my app i present a <code>UINavigationController</code> modally with a <code>UIViewController</code> as its <code>rootViewController</code>. I do it in form style. I added a second <code>UIViewController</code> which is also in form style and i can push to it fine. However when i perform a <code>popViewController</code> action after the second <code>UIViewcontroller</code> gets popped onto the first, the whole modally presented <code>UIViewController</code> gets dismissed. However i don't perform any dismissing and the dismissing function doesn't get triggered by accident either.</p> <p>Any ideas why it's happening?</p> <p>Sincerely,</p> <p>Zoli</p> <p>EDIT:</p> <p>That's how i'm presenting the modal viewcontrollers with a navcontroller:</p> <pre><code>if(!welcomeScreenAlreadyPresented) { welcomeScreenViewController = [[WAWelcomeViewController alloc]init]; } welcomeScreenNavController = [[UINavigationController alloc]initWithRootViewController:welcomeScreenViewController]; [welcomeScreenNavController setModalTransitionStyle: UIModalTransitionStyleCrossDissolve]; [welcomeScreenNavController setModalPresentationStyle:UIModalPresentationFormSheet]; [welcomeScreenNavController setNavigationBarHidden:YES animated:NO]; [self.navigationController presentViewController:welcomeScreenNavController animated:YES completion:nil]; </code></pre> <p>That's how i'm navigation in WAWelcomeViewController.m</p> <pre><code>registerViewController = [[WARegisterViewController alloc]init]; [self.navigationController pushViewController:registerViewController animated:YES]; </code></pre> <p>And in WARegisterViewController.m that's how i pop back</p> <pre><code>[self.navigationController popViewControllerAnimated:YES]; </code></pre>
    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