i m having a problem w开发者_如何学JAVAhere there is a need to add a split view controller in my tabbar applicaion .i need to add a split view controller in my second tabbar item .is der any possibility to add a splitivew controller in my second tabbar .
To add a splitViewController programmatically you use something like this.
UISplitViewController *c = [[[UISplitViewController alloc] init] autorelease];
c.viewControllers = [NSArray arrayWithObjects:myVC1, myVC2, nil];
And to hide those navigationbars of those myVC1 and myVC2 you will have to use
myVC1.navigationController.navigationBarHidden = YES;
myVC2.navigationController.navigationBarHidden = YES;
Hope it helps ;)
精彩评论