Thursday, May 6, 2010

Colored UITabBar / Custom Color to UITabBar

hi friends
there is a simple way to set color of your UITabBar

CGRect frame = CGRectMake(0.0, 0, 320.0, 48);
UIView *v = [[UIView alloc] initWithFrame:frame];

[v setBackgroundColor:[[UIColor alloc] initWithRed:1.0 green:1.0 blue:0.0 alpha:0.6]];

[tabBar insertSubview:v atIndex:0]; //tabBar is object of your UITabBar