wimagguc / ios-custom-alertview

Custom UIAlertView. Continue adding images and UIViews to dialogs in iOS7+
Other
1.66k stars 394 forks source link

TintColor didn't set color in butons #84

Open rodrigobusata opened 8 years ago

rodrigobusata commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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"