 <p>place the code in appdelegate.m</p> <pre><code>if ([viewController isKindOfClass:[UINavigationController class]]) { UINavigationController *nav = (UINavigationController *)viewController; [nav popToRootViewControllerAnimated:NO]; } </code></pre>