Pop animation is not working in first UINavigationController of UITabbarController

后端 未结 1 1567
执念已碎
执念已碎 2021-01-15 09:47

I don\'t know what is wrong with my code. i have developed app successfully and all the things working fine except when i launch app first time, In side first navigation con

相关标签:
1条回答
  • 2021-01-15 09:57

    I know that i asked the question and also provide solution for same. I have asked this question long time ago and i am not getting any solution for this because there is illogical bugs. Not every Tabbar base application have same. Here i am adding solution that is result of long time debugging and i found that even single line can break your project.

    Actually i have added UITabbarController from storyboard and programmatically created UITabbarController class and type cast it with UITabbarController inside storyboard.

    Here my problem is, i forgot to write [super viewDidAppear:animated]; inside -(void)viewDidAppear:(BOOL)animated method. so i will break pop animation first time then it will work fine.

    After getting this solution, even i don't know how this line affect whole code. but i don't want the other people to waste their time to find out such single line (unexpected issue) problem. so here i am adding this code.

    -(void)viewDidAppear:(BOOL)animated{
        [super viewDidAppear:animated];
    }
    
    0 讨论(0)
提交回复
热议问题