2014-06-06 55 views
0

我試圖讓我的ios應用程序中的後退按鈕處於活動狀態,但它只是顯示而沒有可點擊的狀態。 在我正在處理的這個iOS應用程序中,我有一個TabBarController,從那裏點擊可以進一步打開UIViewControllers。但是,當我打開UIViewController時,我看到了我創建的NavigationItems,但是Back未被啓用。 我正在嘗試一種類似於iTunes Music的體驗(在加載完整的UIViewController後有一個後退按鈕)。 Notice the back button faintly appearing使後退按鈕UINavigationController處於活動狀態

As compared to it working correctly in iTunes music.

+0

哦,這裏的答案:http://stackoverflow.com/questions/8555281/uitabbarcontrollers-done-button-hidden-behind-uinavigationcontroller?rq=1是有幫助的。將回報 – Irwin

回答

0

OK,事實證明,鏈接(UITabbarController's "Done" button hidden behind UINavigationController)沒有幫助,它說:

由於的UITabBarController類從UIViewController類繼承,標籤欄控制器有自己的可以通過視圖屬性訪問自己的視圖。在部署選項卡欄界面時,必須將此視圖安裝爲窗口的根目錄。與其他視圖控制器不同,選項卡欄界面不應該被安裝爲另一個視圖控制器的子視圖。

在設置RootViewController的時候,我有:

window.RootViewController = new UINavigationController(new TabScreen());//TabScreen is a subclass of UITabBarController 

我繼續這樣做:

window.RootViewController = new TabScreen(); 

而且牽引我走出黑暗。

相關問題