使用hidesBottomBarWhenPushed时iOS7奇

使用hidesBottomBarWhenPushed时iOS7奇

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

问题描述

当推送另一个隐藏了hidesBottomBarWhenPushed底部栏的视图控制器时,我得到了一个非常奇怪的动画行为。我发现的第一个帖子是:时出现奇怪的动画,但由于我的应用程序仅在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):

只有当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.

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

08-15 11:36