PushViewController causing autorun issue with hidesBottomBarWhenPushed (iphone6)
I have FirstViewController
with TabBarController
and NavigationController
(TabBarController> NavigationController> UIViewController)
When you click UIButton
on FirstViewController
, he presses on SecondViewController
.
SecondViewController *vc2 = [self.storyboard instantiateViewControllerWithIdentifier:@"BVC"];
vc2.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:vc2 animated:YES];
In SecondViewController
the lower right corner there is UILabel
with restrictions - (Width-Equal, Height-Equal, TrailingSpaceToSuperView = 16, BottomSpaceToBottomLayoutGuide = 20)
The result works fine on iphone4s (IOS7), but on iphone6 ββ(IOS8.1) it will first appear UILabel
in the lower right corner plus the "BottomBar" height for about 1 second and then update to the correct place (BottomSpaceToBottomLayoutGuide = 20)
When I set the pushViewController
animated NO, it UILabel
will display in the right place immediately.
[self.navigationController pushViewController:vc2 animated:NO];
Does anyone face the same problem?
source to share