简体   繁体   中英

UINavigationController (Inside a UITabBarController tab) losing stack when a UIViewController is presented modally

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM