iPad pushing a split view in navigator-based application
Posted
by
FabioWong
on Stack Overflow
See other posts from Stack Overflow
or by FabioWong
Published on 2012-07-08T22:18:58Z
Indexed on
2012/07/09
15:16 UTC
Read the original article
Hit count: 190
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;
}
© Stack Overflow or respective owner