Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the Title Color #52

Open
rajatmohanty opened this issue Jun 12, 2015 · 4 comments
Open

Change the Title Color #52

rajatmohanty opened this issue Jun 12, 2015 · 4 comments

Comments

@rajatmohanty
Copy link

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?

@scorpiohjx
Copy link

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.

@litt1e-p
Copy link

litt1e-p commented Nov 2, 2015

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

@apwelsh
Copy link

apwelsh commented Aug 16, 2016

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.

@litt1e-p
Copy link

@apwelsh 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants