2011-01-05 9 views

答えて

1

次のコードは、正しい方向にあなたを導く必要があります。 UISplitViewControllerに戻っRootViewControllerとDefaultViewControllerに行くために

- (IBAction)myBtnPushed{ 
NSLog(@"myBtnPushed"); 

NewRightVC *newRightVC = [[NewRightVC alloc] initWithNibName:@"NewRightVC" bundle:[NSBundle mainBundle]]; 
[detailViewController.navigationController pushViewController:newRightVC animated:YES]; 

NewLeftVC *newLeftVC = [[NewLeftVC alloc] initWithNibName:@"NewLeftVC" bundle:[NSBundle mainBundle]]; 
[self.navigationController pushViewController:newLeftVC animated:YES]; 
} 

::新しいのViewControllerをロードするために

[detailViewController.navigationController popViewControllerAnimated:YES]; 

[self.navigationController popViewControllerAnimated:YES]; 

Example Project to examine can be downloaded here.

Example obtained from this post: https://stackoverflow.com/questions/5263128/splitviewcontroller-with-two-navigationcontroller-linking-protocols

関連する問題