Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS7 strange animation when using hidesBottomBarWhenPushed

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

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

like image 638
priojewo Avatar asked Mar 19 '14 19:03

priojewo


2 Answers

Solved my problem:

self.tabBarController.tabBar.hidden=YES;

In the second view controller is the way to go.

like image 86
priojewo Avatar answered Sep 28 '22 04:09

priojewo


Leo Natan is correct. The reason for this blur effect is because the entire Tab Bar Controller is being animated underneath the navigation controller, and behind that view is a black UIWindow by default. I changed the UIWindow background color to white and that fixed the issue.

hidesBottomBarWhenPushed seems to work great with UITabBars (iOS 7/8).

like image 21
chourobin Avatar answered Sep 28 '22 06:09

chourobin