RDVTabBarController icon indicating copy to clipboard operation
RDVTabBarController copied to clipboard

Change the Title Color

Open rajatmohanty opened this issue 9 years ago • 4 comments

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?

rajatmohanty avatar Jun 12 '15 10:06 rajatmohanty

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.

scorpiohjx avatar Jul 30 '15 15:07 scorpiohjx

@rajatmohanty @scorpiohjx there is a solution: for RDVTabBarItem, setSelectedTitleAttributes: & setUnselectedTitleAttributes: those 2 method will do help! ps.attr:@{NSForegroundColorAttributeName: [UIColor yourColor]}

litt1e-p avatar Nov 02 '15 16:11 litt1e-p

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 avatar Aug 16 '16 04:08 apwelsh

@apwelsh 🎉🎉

litt1e-p avatar Aug 16 '16 04:08 litt1e-p