UITabBarViewController之隐藏tabBar

//在你希望隐藏tabBar的控制器中加入如下语句
//隐藏tabBar
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.hidesBottomBarWhenPushed=YES;
    }
    return self;  
}


你可能感兴趣的:(UITabBarViewController之隐藏tabBar)