1
右視圖 - 控制我有以下選項卡結構的基礎的TabBar的應用程序:如何讓基於的TabBar/navigationcontroller模型
Tab A - ATabViewController - enclosed by UINavigationController
Tab B - BTabViewController - enclosed by UINavigationController
在某一點上,單擊視圖中的一個按鈕,它駐留在導航堆棧應該彈出一些CViewController,它應該在BTabViewController中被推入,這樣它的後退按鈕將顯示BTabViewController的標題。
My question is
1. how to get the right navigation controller to call the pushViewController:CViewController?
2. The tab B still wasn't tapped at this point, so the question is whether I have to load it manually?
It's wired in the MainMenu.xib to load BTabViewController's xib
我嘗試以下操作:
[[appDelegate tabBarController] setSelectedIndex:BTab_Index];
[[appDelegate tabBarController].selectedViewController pushViewController:CViewController animated:YES]
這的確表明CViewController,但似乎搞砸了什麼事讓後退按鈕顯示CViewController的標題,按下時顯示出混合CViewController和BTabViewController的部分一種觀點認爲...
感謝
這會工作,但當我點擊標籤時會發生什麼?它會再次推動這個觀點,這不是我想要的 – 2011-01-13 08:45:54