IOS 8 text box text color

In iOS 7, changing the "tint color" attribute of a uitext field will change the cursor color of this text field. In iOS 8, even when I change the hue color of the global storyboard, this does not happen (objective-c, still works in iOS 7). How to fix it?

+7
ios objective-c xcode ios8
source share
2 answers

I just tried to replicate your problem, but on both iOS7.1 and iOS8, the tintColor attribute of the text box works fine.

This line of code changes the color of the textField cursor. Try changing the hue in the storyboard instead.

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

Hope this helps!

+12
source share

try the following:

 [[self.textField setTintColor:[UIColor blueColor]]; [self.textField setTintAdjustmentMode:UIViewTintAdjustmentModeNormal]; 
+8
source share

All Articles