Search code examples
objective-cios7uiviewcontrolleruitableviewpushviewcontroller

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?


Solution

  • Solved my problem:

    self.tabBarController.tabBar.hidden=YES;
    

    In the second view controller is the way to go.