こんにちは友人、私は質問がある、これは同じアプリで2つの異なるタブバークラスを使用することは可能ですか? 私のアプリに2つのタブバーコントローラがあることを意味します。 Like 1stはnewtabcontroller.hです& newtabcontroller.m 2nd is oldtabcontroller.h & oldtabcontroller.m アプリ内で2つの異なるtabbarcontrollerを使用することができます。 ありがとうiphoneのtabBarコントローラーについて
0
A
答えて
0
なぜですか? しかし、別のtabbarcontrollerの中のtabbarcontrollerであってはなりません。
TabbarManager
クラスを持っています。その後、いくつかの条件で、負荷 - FirstTabbarController
または - SecondTabbarController
すべてのコンポーネント自体はTabbarManagerクラスでインスタンス化されなければならないUITabbarControllers。 init
にはこのようなコードがありますが、2つのtabbarcontrollersと似ています。
self.tabBarController = [[UITabBarController alloc] init];
self.controllers = [[NSMutableArray alloc] init];
// initialize the view controllers and navigation controllers for the tab bar
self.friendsVC = [[FriendsVC alloc] initWithNibName:@"FriendsView" bundle:nil];
UINavigationController *friendsNVC = [[UINavigationController alloc] initWithRootViewController: friendsVC];
friendsNVC.navigationBar.barStyle = UIBarStyleBlack;
[controllers addObject:friendsNVC];
[friendsNVC release];
self.paymentsVC = [[PaymentsVC alloc] initWithNibName:@"PaymentsView" bundle:nil];
UINavigationController *paymentsNVC = [[UINavigationController alloc] initWithRootViewController: paymentsVC];
paymentsNVC.navigationBar.barStyle = UIBarStyleBlack;
[controllers addObject:paymentsNVC];
[paymentsNVC release];
tabBarController.viewControllers = controllers;
tabBarController.selectedIndex = 0;
tabBarController.delegate = self;
self.view = tabBarController.view;
関連する問題
- 1. TabBarのThree20 iPhoneフォトギャラリーのサポート
- 2. tabBarビューのIBのコントローラー:カスタムのinitを送信しますか?
- 3. iPhone - 親コントローラーに "戻る"アニメーション
- 4. drawRectとtabBar(iphone iOS 4)
- 5. iPhone - スムーズに2つのモーダル表示コントローラーを表示
- 6. tabbarコントローラのtabbarがhidになっていません
- 7. Tabbar Controllerアイコンを追加するIPhone
- 8. ナビゲーションベースのiPhoneアプリをTabBarベースのアプリに変換する方法
- 9. iPhoneアプリケーションデザインドキュメントについて
- 10. コントローラーを別のコントローラーにリダイレクト
- 11. グローバルtabBarにローカルtabBarを置く(私はグローバルtabBarControllerを持っています)
- 12. コントローラーのコントローラーのアクションコールオーダー
- 13. iPhone/Instruments:オブジェクトサマリーの「malloc」エントリについて
- 14. iPhoneのIOKitフレームワークについて
- 15. 一つのコントローラーが別のコントローラーにユーザーを送ることができます
- 16. コードイグナイターで1つのコントローラーから別のコントローラーに変数を渡す方法
- 17. TabPanelとTabBarの違い
- 18. iOS5デバイスの黒いTabBar
- 19. コントローラーから前のコントローラーに戻る
- 20. ログイン画面からログインして特定のコントローラー(iPhone SDK)に送信
- 21. iPhoneアプリケーション - モーダル表示コントローラーを解除してもそれを解除しない
- 22. TabBarアイテムをTabBarの幅に伸ばす方法は?
- 23. コントローラー内の2つのステートメントの接続
- 24. Tabbarのカスタムフォント
- 25. TabBarアプリケーションのABPeoplePickerNavigationController
- 26. デフォルトのTabBarアプリケーション
- 27. あいまいなマッピングエラーに:春のコントローラー
- 28. Tabbarがナビゲーションコントローラにアクセスできない
- 29. ruby on railsフラッシュメッセージ - :alert:error:noticeと:success?私のコントローラーのいくつかで
- 30. 別のコントローラー内の角度付きコントローラー
これは、http://stackoverflow.com/questions/1907483/multiple-tab-bar-controllerとその他のもののようです。 – CharlieMezak