You can set the color on the storyboard by selecting the root element: the table control panel, select the tab bar and edit the background color (or hue) in the attribute inspector or you can customize the code using barTintColor
// Adjust the Color of the Tab Bar itself self.tabBar.barTintColor = [UIColor redColor]; // Adjust the Color of the selected Icon in the Tab Bar self.tabBar.tintColor = [Single single].singleThemeColorTint;
If you need to configure ALPHA as well, I would use:
UIColor *charcoal = [UIColor colorWithRed:66/255.0 green:79/255.0 blue:91/255.0 alpha:1]; // For Tab Bar self.tabBar.barTintColor = charcoal; // For selected Item Highlight self.tabBar.tintColor = charcoal;
I created a View Controller file for the String Bar and displayed this code in ViewDidLoad {}
source share