我有一個似乎很簡單的問題。 我的應用程序具有包含UITabBarController(包含UINavigationControllers)的視圖層次結構。當我從根源定位到第二級 我設置上真正的hidesBottomBarWhenPushed使標籤欄被隱藏hidesBottomBarWhenPressed,但彈出時
在我firstLevelController:
[secondLevelController setHidesBottomBarWhenPushed:YES];
[self.navigationController pushViewController:secondLevelController animated:YES];
後,當我推到第三級,我
[self setHidesBottomBarWhenPushed:NO];
[thirdLevelController setHidesBottomBarWhenPushed:NO];
[self.navigationController pushViewController:thirdLevelController animated:YES];
(我知道,我不喜歡[self setHidesBottomBarWhenPushed:NO]
要麼,但它didn't工作,否則......)
所以,這裏是問題:當我在第三級按下後退按鈕並出現第二個視圖時,我需要再次隱藏tabbar,但是我無法找到這樣做的方式。
任何幫助表示讚賞
我不認爲這是一個支持的用例。讓標籤欄重新出現在堆棧層次結構中更深層次是沒有意義的。你可能想重新考慮你的設計。 – 2011-04-06 17:25:44