Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 Text Field Tint Color

In iOS 7, changing the 'tint color' attribute of a uitextfield would change the cursor color of that text field. In iOS 8, even when I change the global storyboard tint color, this does not occur (objective-c, still works in iOS 7). How do I fix this?

like image 697
Jack Solomon Avatar asked Oct 02 '14 09:10

Jack Solomon


1 Answers

I just tried to replicate your problem but both on iOS7.1 and iOS8 the tintColor attribute of a textfield works perfectly.

This line of code change the cursor color of the textField. Try this instead of changing the tint color in Storyboard

textField.tintColor = [UIColor colorWithRed:98.0/255.0f green:98.0/255.0f blue:98.0/255.0f alpha:1.0];

Hope it helps!

like image 193
Niccolò Passolunghi Avatar answered Sep 19 '22 06:09

Niccolò Passolunghi