iPhone: increasing size of view frame in a UItabbarcontroller?
Posted
by
dpigera
on Stack Overflow
See other posts from Stack Overflow
or by dpigera
Published on 2010-12-28T23:47:54Z
Indexed on
2010/12/28
23:54 UTC
Read the original article
Hit count: 158
I currently have a UITabBarController defined, with the tab bar moved a few pixels down to make it thinner:
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.tabBar.frame=CGRectMake(0,self.window.bounds.size.height-38.5,self.window.bounds.size.width,50);
[self.window addSubview:self.tabBarController.view];
I then have a UIViewController object assigned to the first tab using:
Home *home = [[Home alloc] initWithNibName:@"Home" bundle:nil];
UINavigationController *nHome = [[UINavigationController alloc] initWithRootViewController:home];
nHome.tabBarItem.image=[UIImage imageNamed:@"home.png"];
[tabBarController setViewControllers:[NSArray arrayWithObjects:nHome,nil]];
As a result, there is a thin sliver of space between the tabbarcontroller and the view. Can someone please tell me how I can get rid of this space?
© Stack Overflow or respective owner