I have a tabbarcontroller as main controller and when a view is pushed I would like to hide it. I use hidesBottomBarWhenPushed but not working. Thanks.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.hidesBottomBarWhenPushed = YES;
}
return self;
}
This will only work if one of the viewControllers of the tabBarController is a UINavigationController. The
hidesBottomBarWhenPushedproperty is only respected if a view controller is pushed onto the stack of a UINavigationController and will not do much if it is the root view controller.