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

Manually setting the toolbar tintColor #342

Closed
RTimal opened this issue Oct 30, 2015 · 3 comments
Closed

Manually setting the toolbar tintColor #342

RTimal opened this issue Oct 30, 2015 · 3 comments

Comments

@RTimal
Copy link

RTimal commented Oct 30, 2015

Is there a way to do this with the current API, or is it planned? Thank you.

@hackiftekhar
Copy link
Owner

Currently it's supported with using 'toolbarUsesTextFieldTintColor' property, in which toolbar use it's textField's tintColor. I think when toolbarUsesTextFieldTintColor=NO then we can add another property to set toolbarTintColor too. Thanks for a suggestion.

@Weever
Copy link

Weever commented Nov 5, 2015

I set shouldToolbarUsesTextFieldTintColor = YES, and TextField's tintColor is WhiteColor, in iPad, the tintColor is WhiteColor, but in iPhone(4S,iOS9.1), the tintColor is some like grayColor(po textField.tintColor is UIDeviceRGBColorSpace 0.64 0.64 0.6).

In source code set tintColor is WhiteColor like this(line:1698):
#ifdef NSFoundationVersionNumber_iOS_6_1
//Setting toolbar tintColor // (Enhancement ID: #30)
if ([toolbar respondsToSelector:@selector(tintColor)])
[toolbar setTintColor:[UIColor whiteColor]];
#endif

but is just like grayColor

@hackiftekhar
Copy link
Owner

This feature has been recently implemented c4c3f6b.

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

No branches or pull requests

3 participants