问题描述
当我构建针对iOS 5或6的应用程序,但在iOS 7上运行它时,会出现此问题.如果我在navigationController中有一个属于tabBarController一部分的控制器,并且执行以下操作:
This problem comes when I build an app targeting iOS 5 or 6, but run it on iOS 7. If I have a controller in a navigationController that is a part of a tabBarController, and I do the following:
controller.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:testController animated:YES];
发生奇怪的垂直定位动画.相反,我希望新控制器(底部栏处于隐藏状态)在导航控制器上按下或弹出,以将选项卡栏推出或拉回,并且垂直位置没有变化.
A strange vertical positioning animation occurs. I would instead like the new controller (with the bottom bar hidden) to push or pop on the navigation controller pushing the tab bar out or bringing it back and with no vertical positioning changes.
发布视频: https://dzwonsemrish7.cloudfront.net/items/0K2H1/hidesBottomBarWhenPushed.mov
打开雷达报告: http://www.openradar.me/14670329
推荐答案
您始终可以使用以下方法从UIView中删除动画:
You can always remove animation from the UIView with
[self.view.layer removeAllAnimations];
欢呼
这篇关于当使用hidesBottomBarWhenPushed在应用程序内置的目标为& lt; = iOS 6的iOS 7上时,iOS 7上出现奇怪的动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!