Reputation: 65
I have a UITabBarController with 3 tabs. All of them have a UINavigationController inside with their current stack of UIViewControllers. The problem occurs when I present a UIViewController from any view on top of the UITabBarController (Modally) and when the presented UIViewController is dismissed, the selected tab loses the stack of UIViewControllers previously presented.
Does anyone know if this is a lifecycle memory management to help with the performance of the iPhone? I've tested this with pretty good iPhones and simulators.
Thanks.
Upvotes: 0
Views: 64
Reputation: 65
Me from the future. This occurs when dismissing the modal viewcontroller from parent modal viewcontrollers. The dismiss function should be called on the topmost viewcontroller to dismiss only the current screen
Upvotes: 0