0

私はこのビュー階層を持っています:

UINavigationColtroller
-> UITableViewController
   -> (push) UITabBarController
      -> (tab) UITableViewController [list view]
         -> (push) UIViewController [detail view]
      -> (tab) UITableViewController
         -> (push) UIViewController
      -> (tab) UITableViewController
         -> (push) UIViewController

問題は、下の 3 つのビュー コントローラーではナビゲーション バーのカスタマイズが機能しないことです。3 つのタブ ビューが同じレベルにあるナビゲーション アイテムのスタックがあるため、これは理にかなっています。

だから私はこの代替案を残しています:

UINavigationColtroller
-> UITableViewController (1)
   -> (modal) UITabBarController
      -> (tab) UINavigationColtroller (2)
         -> (root) UITableViewController
            -> (push) UIViewController
      -> (tab) UINavigationColtroller (3)
         -> (root) UITableViewController
            -> (push) UIViewController
      -> (tab) UINavigationColtroller (4)
         -> (root) UITableViewController
            -> (push) UIViewController

現在、4 つの個別のナビゲーション スタックがあるため、これはひどいことです。絵コンテが醜くなるだけでなく、定型文を追加して#2、左ボタン#3を配線して手動で#4戻ることもできますか?#1

間にタブ バーがあっても、最上位のナビゲーション スタックを1 つだけ使用してナビゲーションを維持する方法はありますか?

4

1 に答える 1

0

私はあなたができると思います

UITabBarController (Replace with UINavigationColtroller)
-> UINavigationColtroller (RW UITableViewController)
   -> (With hidden Tabbar) UITableViewController  (RW UITabBarController)
        ->  (push and show Tabbar) UITableViewController [list view]
        ->  (push and show Tabbar) UIViewController [detail view]
        ->  (push and show Tabbar) UITableViewController
        ->  (push and show Tabbar) UIViewController
        ->  (push and show Tabbar) UITableViewController
        ->  (push and show Tabbar) UIViewController
于 2013-11-09T10:43:43.733 に答える