Alex Rivera | Logout

How to Hide Tab Bar Controller?

Asked 2011-09-19T05:34:45.227
24

How to Hide Tab Bar Controller ? I want to hide the Tab Bar controller with double tap on UIImageView.

Edit
Report

3 Answers

6

Use Tap Gesture Recognizer to detect double taps on a UIImageView. Then invoke a method on detecting the double double tap. Add the following line of code in that method.

self.tabBarController.tabBar.hidden=YES;

Hope this helps.

answered 2011-09-19T05:43:15.943
2

UIViewController has a property

@property(nonatomic, readonly, retain) UITabBarController *tabBarController

which you can set:

self.tabBarController.tabBar.hidden = YES;
answered 2012-09-25T10:04:37.270
0

Try this when you push the view to the new view:

self.tabbarconroller.tabbar.hidden = YES;
answered 2011-09-19T05:58:44.787

Your Answer