iPad pushing a split view in navigator-based application
- by FabioWong
I had read a lot of post from the web, but I still cannot find out how can I make this out. Please help me in detail.
I need to make a split-view inside a navigation because I need to make a login system. After login, then we can see the split view.
I found that someone say must need to set it to be root view, some say do not need. However I cannot do it in both way.
Can anyone teach me how to do that step by step??
Here is what I did.
- (void)viewDidLoad
{
[super viewDidLoad];
GOTSorOE_EN *gotsORoeEN = [[[GOTSorOE_EN alloc]initWithNibName:@"GOTSorOE_EN" bundle:nil]autorelease];
OEFileList_EN *oeFileListEN = [[[OEFileList_EN alloc]initWithNibName:@"OEFileList_EN" bundle:nil]autorelease];
gotsORoeEN.oeFileListEN = oeFileListEN;
splitViewController = [[[UISplitViewController alloc]init]autorelease];
splitViewController.viewControllers = [NSArray arrayWithObjects:gotsORoeEN, oeFileListEN, nil];
self.view = splitViewController.view;
}