2012-01-24 10 views
0

私は以下の階層を実装するための良い方法を探しています。現在のTabBarControllerビューをUINavigationControllerのルートとして設定します

私はログインの実装を完了し、他の3つのビューについてはUITabBarControllerを完了しました。

私が今必要とするのは、rootviewcontrollerとしてすぐに実装されるUINavigationcontrollerのように動作する選択されたタブです。これは詳細なビューからのプッシュとポップを処理することになっています。

階層要約:

LoginView-- 
    TabBarController - Holds it's own view and the three views below. 
      OneView (If selected should be root for UINavigationcontroller) 
       - DetailView (DetailView of OneView) 
        -DetailView (Details of detailview) 
      AnotherView (If selected should be root for UINavigationcontroller) 
       - DetailView (DetailView of AnotherView) 
        -DetailView (Details of detailview) 
      AThirdView (If selected should be root for UINavigationcontroller) 
       - DetailView (DetailView of AThirdView) 
        -DetailView (Details of detailview) 

三面図、LON、スキーマおよびtidsaldoは全てインタフェースビルダーでUITabBarControllerに接続されています。

私は基本的に助けが必要です、これらの3つのタブのいずれかを私のUINavigationControllerのルートにするためのガイドラインやヒントです。

私が他のものの中で試したのは、App Delegateを保持し、現在rootviewcontrollerのサブビューをUINavigationControllerに追加することです。しかし、それはどういうわけかタブバーを緩めてしまいます。

ヒントや指摘をいただければ幸いです。

PS。タイプミスがあるかもしれません。 Tabbarcontroller代わりにViewcontrollersNavigationcontrollersを添加することにより解決

Hierarchy structure

+0

[この] [1]の投稿を確認してください。 またはこの[チュートリアル] [2] [1]:http://www.cimgf.com/2009/06/25/uitabbarcontroller-with-uinavigationcontroller-using-interface-builder/ [2] :http://jduff.github.com/2010/03/09/throwing-a-uinavigationcontroller-uitabbarcontroller-and-uisearchbar-together/ – Jimit

+0

ありがとう、私はそれらを見て、いくつかの非常にきちんとしたものを見つけました。 – doge

答えて

関連する問題