在iOS 7奇怪的动画时应用程序中使用hidesBottomBarWhenPushed内置靶向LT = iOS 6的 [英] Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6

查看:224
本文介绍了在iOS 7奇怪的动画时应用程序中使用hidesBottomBarWhenPushed内置靶向LT = iOS 6的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是当我建立一个应用程式指定的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.

问题的视频: http://cl.ly/1w0g3j293m03

打开雷达报告: http://www.openradar.me/14670329

推荐答案

您可以随时删除该UIView的动画与

You can always remove animation from the UIView with

[self.view.layer removeAllAnimations];

干杯

这篇关于在iOS 7奇怪的动画时应用程序中使用hidesBottomBarWhenPushed内置靶向LT = iOS 6的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆