开发者

how to add a splitview controller in a tabbar

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 ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜