So here is what i have: A UITabBarController that handles different UIViewControllers. In one of the UIViewController i am trying to switch the view being displayed when the
Maybe you want to use this
- (void)willAnimateRotationToInterfaceOrientation:UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
__block UIView *weakTabBar = [self.tabBarController.view.subviews objectAtIndex:1];
weakTabBar.alpha = 0;
[UIView animateWithDuration:duration
delay:0
options:UIViewAnimationOptionCurveEaseIn // slow at the beggining
animations:^{
weakTabBar.alpha = 1;
}
completion:^(BOOL finished) {
weakTabBar.alpha = 1;
}];
}
}
This doesn't hide the tab bar but makes the rotate animation smoother.