如何将下一级页面的tabBar给隐藏掉

以下代码需要写在上一级页面push到下一级页面的方法中。

ImageViewController *imageViewController = [[ImageViewController alloc] init]; //声明一个实例

        

        imageViewController.title = @"xxxxxxxxxxxxx";

        

        imageViewController.hidesBottomBarWhenPushed = YES; //一定要放在push之前

        

        [self.navigationController pushViewController:imageViewController animated:YES];

                

        [imageViewController release];

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章