Create a gist now

Instantly share code, notes, and snippets.

UITabbar background color
//Add this to a subclass of UITabbar controller
- (void)viewDidLoad
[super viewDidLoad];
CGSize tabBarSize = [self.tabBar frame].size;
UIView *tabBarFakeView = [[UIView alloc] initWithFrame:CGRectMake(0,0,tabBarSize.width, tabBarSize.height)];
[self.tabBar insertSubview:tabBarFakeView atIndex:0];
[tabBarFakeView setBackgroundColor:[UIColor redColor]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment