Saturday, 17 August 2013

Tab Bar in Iphone Programming?

Tab Bar in Iphone Programming?

I make an application using Tab Bar. I have 2 views controller: View1 and
View2 and a RootViewController. In RootViewController.m:
- (void)viewDidLoad
{
[self.navigationItem setTitle:@"Tab Bar"];
View1 *vc1 = [[View1 alloc]init];
View2 *vc2 = [[View2 alloc]init];
[vc1.tabBarItem setTitle:@"View1"];
[vc2.tabBarItem setTitle:@"View2"];
[self setViewControllers:[NSArray arrayWithObjects:vc1, vc2, nil]];
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
When I build application, I have an error: Have a white place. When I go
to View 2 and back to View 1 it is disappeared. I want to delete white
place. Please see image in here:
http://photo.ssc.vn/images/108Screen_Shot_2013_08_18.jpg Thanks for your
helping!

No comments:

Post a Comment