我的 View 中有一个下载按钮,当单击该按钮时,该应用会使用 [[UIApplication sharedApplication] openURL]
打开应用商店
但是,当我切换回我的应用程序时,我发现我的应用程序中的 [popViewController animated:YES]
没有动画。
我调试了几天并解决了问题,原因是在我的 applicationWillEnterForeground
方法中,我这样做了:
[tabBarController.selectedViewController viewWillAppear:YES];
而且我遇到了错误。
我的问题是,为什么在我调用此方法后,我的所有 [popViewController animated:YES]
都不起作用...
最佳答案
我不知道你为什么有那个错误,但作为 Apple 文档,你不应该调用 - (void)viewWillAppear:(BOOL)animated
方法。
这是一种通知方法,可以被覆盖,并且永远不会被调用。
关于ios - popViewController 动画 :YES not animating,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10637557/