使用此代码....
self.tab=[[UITabBarController alloc]init];
// FirstViewController
First *fvc=[[First alloc]initWithNibName:nil bundle:nil];
fvc.title=@"First";
fvc.tabBarItem.image=[UIImage imageNamed:@"i.png"];
//SecondViewController
Second *svc=[[Second alloc]initWithNibName:nil bundle:nil];
svc.title=@"Second";
svc.tabBarItem.image=[UIImage imageNamed:@"im.png"];
//ThirdViewController
Third *tvc=[[Third alloc]initWithNibName:nil bundle:nil];
tvc.title=@"Third";
tvc.tabBarItem.image=[UIImage imageNamed:@"img.png"];
.
.
.
.//Like this Create Six tabBar item.
.
.
.
// Add All six Tab bars in your UITabViewController
self.tab.viewControllers=[NSArray arrayWithObjects:fvc, svc, tvc,........, nil];
[self.view addSubview:self.tab.view];
它会起作用的,快乐编码..