0
スプリットビューを作成しました。次に、詳細ビューにタブバーを追加します。 サンプルコード/プログラムがあれば教えてください。SplitView with detailByView
ありがとうございました。
スプリットビューを作成しました。次に、詳細ビューにタブバーを追加します。 サンプルコード/プログラムがあれば教えてください。SplitView with detailByView
ありがとうございました。
分割ビューで2番目のビューとして表示されるUITabBarControllerを継承する必要があります。ところで、これはあなたの画面の一部で入れ子になったtabBarControllerを使うのは悪い習慣です。 .Mファイルにあなたの.hファイル内
#import <UIKit/UIKit.h>
@interface MyTabBarController : UITabBarController
@end
#import "MyTabBarController.h"
@implementation MyTabBarController
- (void)viewDidLoad {
[super viewDidLoad];
FirstViewController *fVC = [[[FirstViewController alloc] init] autorelease]; //Here you create instances of your view controllers. You even can create UINavigationController instances linked to those viewControllers and put them in array instead of ViewControllers
fVC.tabBarItem.image = [UIImage imageNamed:@"fVC.png"];//Here you set up UITabBarController item image
NSMutableArray *controllers = [NSMutableArray arrayWithObjects:fVC, nil];// Here you put your view controllers in NSMutableArray for UITabBarController
[self setViewControllers:controllers animated:NO]; //ta-daa. You assign array of view controllers to UITabBarController and create sections for them.
}
これはUITabBarControllerの構造である: よりこのlink
感謝を見るために私はタブバーを押すと私の詳細では、戻るボタンはマスターのポップオーバーボタンの代わりに詳細表示になります。私はそれにアクセスすることはできません最初に戻って行く必要があります –
あなたはtabBarControllerにプッシュしないでください。あなたはsplitViewに見えるだけのネストを必要としません。このコントローラーのインスタンスを作成し、スーパービューのサイズに応じてフレームを設定することができます。 – kokoko