Http://blog.sina.com.cn/s/blog_63578f140100w56m.html
uitabbar* TabBar = [[Uitabbar alloc] Initwithframe:cgrectmake (40,0.0,240,30)];
[MainView Addsubview:tabbar];
[TabBar release];
Uitabbaritem *tabbaritem1 = [[Uitabbaritem alloc] initwithtitle:@ "queue number" Image:nil tag:0];
Uitabbaritem * tabBarItem2 = [[Uitabbaritem alloc] initwithtitle:@ "per capita" Image:nil tag:1];
Uitabbaritem * tabBarItem3 = [[Uitabbaritem alloc] initwithtitle:@ "Distance" Image:nil Tag:2];
Uitabbaritem * TABBARITEM4 = [[Uitabbaritem alloc] initwithtitle:@ "positive" image:nil tag:3];
Nsarray *tabbaritemarray = [[Nsarray alloc] initwithobjects:tabbaritem1, tabBarItem2, TabBarItem3, Tabbaritem4,nil];
[TabBar Setitems:tabbaritemarray];
[Tabbaritemarray release];
Like Tabbar.backgroundcolor = [Uicolor bluecolor]; Setting the background does not work
Alpha can work.
How to use the Ios tab Bar