Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6

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.

Video of Issue: https://dzwonsemrish7.cloudfront.net/items/0K2z1J3U2H3w033G0k23/hidesBottomBarWhenPushed.mov

Open Radar Report: http://www.openradar.me/14670329

like image 931
Collin Ruffenach Avatar asked Sep 18 '13 22:09

Collin Ruffenach


1 Answers

You can always remove animation from the UIView with

[self.view.layer removeAllAnimations]; 

Cheers

like image 55
Sundeep Saluja Avatar answered Sep 24 '22 12:09

Sundeep Saluja