次のタブ構造を持つタブバーベースのアプリケーションがあります。
Tab A - ATabViewController - enclosed by UINavigationController
Tab B - BTabViewController - enclosed by UINavigationController
ある時点で、A ナビゲーション スタックにあるビューのボタンをクリックすると、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の一部が1つのビューに混在して表示されました...
ありがとう