funct7
funct7

Reputation: 3591

ios 7.1 UITextField tint color doesn't change in storyboard

Up till iOS 7.0, the text field tint color changed to the color you set in storyboard. As of iOS 7.1, it won't change unless you do it programmatically.

Is this a bug? Does anyone know?

Upvotes: 3

Views: 2089

Answers (2)

Sai Jithendra
Sai Jithendra

Reputation: 439

Here is the solution to work with storyboard.

1) Go to "Identity Inspector"

2) Add "tintColor" attribute in "User Defined Runtime Attributes"

3) Set the desired color.

Thats it.

enter image description here

Or if you want to use same tint color for all textfields throughout the app, juse use,

[[UITextField appearance] setTintColor:color];

Upvotes: 6

Pandey_Laxman
Pandey_Laxman

Reputation: 3908

I have also faced this problem but tint color is working from code.

self.txtPassword.tintColor=[UIColor whiteColor];

Upvotes: 3

Related Questions