複数の の管理に問題がありUINavigationControlller
ます。
がUITabBar
あり、すべてのタブに個別の がありUINavigationController
ます。だから私が切り替えるUITabBar
と
tabBar.selectedIndex = i; // where i is index of tabbar.
前のタブに戻ると
tabBar.selectedIndex = previousIndex;
UINavigationController
以前に残したviewcontrollerではなく、のルートに移動します。
-viewDidLoad:
orを呼び出さずに、別のタブにジャンプするビューコントローラーに移動したい-viewWillAppear:
。
UINavigationController
どちらかまたは私のviewControllerを表示するメソッドが必要です。