UITabBar tintColor
@property(nonatomic, retain) UIColor *tintColor
UITabBar tintColor example.
for me its very simple to change the color of Tabbar like :-
[self.TabBarController.tabBar setTintColor:[UIColor colorWithRed:0.1294 green:0.5686 blue:0.8353 alpha:1.0]];
[self.TabBarController.tabBar setTintColor:[UIColor "YOUR COLOR"];
[self.TabBarController.tabBar setTintColor:[UIColor colorWithRed:0.1294 green:0.5686 blue:0.8353 alpha:1.0]];
[self.TabBarController.tabBar setTintColor:[UIColor "YOUR COLOR"];
Example of [UITabBar tintColor].
self.tabBarController.tabBar.tintColor = [[UIColor alloc] initWithRed:0.00
green:0.62
blue:0.93
alpha:1.0];
green:0.62
blue:0.93
alpha:1.0];
UITabBar tintColor example.
- (void)createTabBar:(NSArray*)arguments withDict:
(NSDictionary*)options
{
UIColor *myNewColor = UIColorFromRGB(0xCD2626);
tabBar = [UITabBar new];
[tabBar sizeToFit];
tabBar.delegate = self;
tabBar.multipleTouchEnabled = NO;
tabBar.autoresizesSubviews = YES;
tabBar.hidden = YES;
tabBar.userInteractionEnabled = YES;
tabBar.opaque = YES;
tabBar.tintColor = myNewColor;
self.webView.superview.autoresizesSubviews = YES;
[ self.webView.superview addSubview:tabBar];
}
(NSDictionary*)options
{
UIColor *myNewColor = UIColorFromRGB(0xCD2626);
tabBar = [UITabBar new];
[tabBar sizeToFit];
tabBar.delegate = self;
tabBar.multipleTouchEnabled = NO;
tabBar.autoresizesSubviews = YES;
tabBar.hidden = YES;
tabBar.userInteractionEnabled = YES;
tabBar.opaque = YES;
tabBar.tintColor = myNewColor;
self.webView.superview.autoresizesSubviews = YES;
[ self.webView.superview addSubview:tabBar];
}