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

TintColor didn't set color in butons #84

Open
rodrigobusata opened this issue Sep 24, 2015 · 2 comments
Open

TintColor didn't set color in butons #84

rodrigobusata opened this issue Sep 24, 2015 · 2 comments

Comments

@rodrigobusata
Copy link

Hello,

I tried to set a color to buttons title, but not work.
"alert.tintColor = UIColor.redColor()"

Are there how to change color of the buttons title ?

@pengzhihao
Copy link

If you programme in Objective-C,you can use the method "- (void)setTitleColor:(nullable UIColor *)color forState:(UIControlState)state" or in swift using "func setTitleColor(_ color: UIColor?,
forState state: UIControlState)"。
button

@pengzhihao
Copy link

if you want change the buttons titleColor, goto CustomIosAletrView.m ,change the color in method " - (void)addButtonsToView:(UIView *)container that create buttons and set buttons color"

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

2 participants