I'm developing an app, where you have LoginVC presented as rootVC and launch. After successful login, I change window rootVC to TabBarVC I created. It works fine. Problem is that when I logout and change window rootVC to LoginVC it appears for a second and then it is covered by distorted TabBarVC with first view selected. My TabBarVC consists of 3 VCs that are embedded in NavCon. I also use SideMenu as second navigation to tabbar. How can I prevent overlapping LoginVC by TabBarVC after logout?
我没有关于您的代码的足够信息,但是我想您的问题是由于动画干扰而发生的,当您要将窗口从rootVC更改为LoginVC时,请尝试禁用动画,即使用:animation animated: false
来查看是否有帮助:小号
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.