iOS7 使用 hidesBottomBarWhenPushed 时的奇怪动画 [英] iOS7 strange animation when using hidesBottomBarWhenPushed

查看:26
本文介绍了iOS7 使用 hidesBottomBarWhenPushed 时的奇怪动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在推送另一个视图控制器时,我得到了一个非常奇怪的动画行为,该控制器的底部栏用 hidesBottomBarWhenPushed 隐藏.我发现的第一个线程是:在针对 <= iOS 6 的应用程序构建目标中使用 hidesBottomBarWhenPushed 时,iOS 7 上出现奇怪的动画,但由于我的应用程序仅在 iOS7 上构建和运行,因此我的问题并非如此.

I am getting a really strange animation behaviour when pushing another view controller that has the bottom bar hidden with hidesBottomBarWhenPushed. The first thread I found was that: Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6 but as my application is only build and run on iOS7 it is not the case for my problem.

请观看以下显示问题的视频(查看右上角):

Please see the following video that shows the problem (look in the top right corner):

https://dl.dropboxusercontent.com/u/66066789/ios7.mov

这个奇怪的动画阴影只有在 hidesBottomBarWhenPushed 为 true 时才会出现.我该如何解决?

This strange animation shadow only occurs when hidesBottomBarWhenPushed is true. How can I fix that?

推荐答案

解决了我的问题:

self.tabBarController.tabBar.hidden=YES;

在第二个视图控制器中是要走的路.

In the second view controller is the way to go.

这篇关于iOS7 使用 hidesBottomBarWhenPushed 时的奇怪动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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