开发者

how to add a splitview controller in a tabbar

开发者 https://www.devze.com 2023-04-12 11:09 出处:网络
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 possibili

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

精彩评论

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

关注公众号