0

似乎只有最后添加的那个视图按钮是可点击的。

 self.splitViewController = [[[ViewController alloc] init] autorelease]; 
 self.splitViewController.delegate = self;

 ViewController *mainViewController = [[ViewController alloc] init];

 ViewController *detailedViewController = [[ViewController alloc] init];

 UINavigationController *mainViewNavigationController = [[UINavigationController alloc] init];
 mainViewNavigationController.navigationBarHidden = YES;

 UINavigationController *detailedViewNavigationController = [[UINavigationController alloc] init];
 detailedViewNavigationController.navigationBarHidden = YES;

 [mainViewNavigationController pushViewController:mainViewController animated:YES];
 [self.splitViewController.view addSubview:mainViewNavigationController.view];

 [detailedViewNavigationController pushViewController:detailedViewController animated:YES];
 [self.splitViewController.view addSubview:detailedViewNavigationController.view];
4

0 回答 0