How to hide tab bar with animation in iOS?
So I have a button that is connected to a IBAction. When I press the button I want to hide the tab bar in my iOS app with a animation. This [self setTabBarHidden:hidden animated:NO]; or this [self.tabBarController setTabBarHidden:hidden animated:YES]; does not work. This is my code without the animation: - (IBAction)picture1:(id)sender { [self.tabBarController.tabBar setHidden:YES]; } Any help would be greatly appreciated :D lara I try to keep view animations available to me using the following formula: // pass a param to describe the state change, an animated flag and a completion block