UITabBarController *tab=[[UITabBarController alloc]init];
UITabBarItem *item = [tab.tabBar.items objectAtIndex:0];
[item setFinishedSelectedImage:[UIImage imageNamed:@"11.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"11.png"]];
tab.tabBar.barTintColor=[UIColor redColor];//背景颜色为红色
tab.tabBar.tintColor=[UIColor yellowColor]; //字体和图片边框为黄色
self.hidesBottomBarWhenPushed=YES;//隐藏tabBar当push进得时候
self.tabBar.hide=YES; //自定义的时候把原来的隐藏