popToViewControllerAnimated does not animate since ios5

前端 未结 2 989
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 16:33

as topic describes, calling popToRootViewControllerAnimated / popToViewControllerAnimated does not do any animation anymore.

the code I use

相关标签:
2条回答
  • 2021-01-20 17:23

    Okay, calling "[super viewWillAppear]" in "viewWillDisappear" is sort of ... my bad!

    0 讨论(0)
  • 2021-01-20 17:27

    Was having the same problem. view transition animation for poptoRootViewControllerAnimated was working fine pre ios5.0 but not in ios5. Below is a brief description to fix it.

    I had implemented a custom Tab bar in view A. When I transitioned to view B from A and then back, the view transition animation stopped working for B to A. Upon looking at the view loading methods in view A and all its sub-views, my customTabBar in view A had ViewDidAppear that was erroneously calling [super viewWillAppear] inside it. When I corrected it to [super viewDidAppear] , the pop animation started happening OK.

    Looks like pre iOS 5, it did not matter but now it does and rightfully so.

    0 讨论(0)
提交回复
热议问题