Note that there are some explanatory texts on larger screens.

plurals
  1. POUINavigationContoller loses track of views after returning from background
    primarykey
    data
    text
    <p>I have an <code>UINavigationController</code> setup as the <code>rootViewController</code> in a <code>TabBarController</code> in an iOS7 only app. Navigation works great: I can push new views and navigate back with either the back button in the top left corner or by swiping back / pop gesture.</p> <p>But if I put the app in the background with anything but the root view shown in the navigation controller I run into this problem: If I use the swipe back gesture there is no pop animation - the view disappears instantly and I am left with the underlying view. The lack of the swipe animation is not a big issue but the real problem is that the title in the navigation controller is now off. It still thinks that I am on the view controller that just disappeared! </p> <p>For example: </p> <p>My root view in the navigation controller will have the title <strong>"Settings"</strong> - I will then push the "<strong>Appearance"</strong> VC, put the app in the background using the home button - re-open the app and then try the swipe back gesture. This pops me back to <strong>"Settings"</strong> but the title still says <strong>"&lt; Settings | Appearance"</strong>. And now if I push another VC the title will say <strong>"Settings"</strong> on the new VC and there is no back button!</p> <p>This only happens if I use the pop gesture - not if I use the navigation bar back button.</p> <p>I have tried to check if the issue is that my VC becomes dealloc'ed by putting <code>NSLog</code> in the dealloc but that is not the issue.</p> <p>I have also tried putting an: </p> <pre><code>NSLog("Hierarchy: %@", [self.navigationController viewControllers]); </code></pre> <p>in both view will appear and disappear to see if the stack on the nav controller is getting messed up - but that is not the issue - the stack is correct.</p> <p>Any suggestions for how to further debug or for what I may be doing wrong are much appreciated! This happens both on my iPhones and in the simulator and it is driving me nuts.</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