RDVTabBarController
RDVTabBarController copied to clipboard
Change the Title Color
Currently i am facing issue w.r.t changing color of the tab bar title. I want when tab bar is selected it should displayed different title color and when it is unselected it should displayed different title color. How to achieve this?
There's no any methods for developers to custom the title color, though, I've found a workaround. Go to the file RDVTabBarItem.m , check line 73 and line 79, you can adjust these two line for unselectedTitleColor. It works, but quite not elegant.
@rajatmohanty @scorpiohjx there is a solution: for RDVTabBarItem, setSelectedTitleAttributes: & setUnselectedTitleAttributes: those 2 method will do help! ps.attr:@{NSForegroundColorAttributeName: [UIColor yourColor]}
Thanks a lot @litt1e-p ! I had been trying to figure out the values for the NSDictionary argument. I didn't have any issues finding this method, but being a noob to Objective-C and Xcode, I did have an issue finding the supported keys.
@apwelsh 🎉🎉