如何將下一級頁面的tabBar給隱藏掉

以下代碼需要寫在上一級頁面push到下一級頁面的方法中。

ImageViewController *imageViewController = [[ImageViewController alloc] init]; //聲明一個實例

        

        imageViewController.title = @"xxxxxxxxxxxxx";

        

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

        

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

                

        [imageViewController release];

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