Jacob K
Jacob K

Reputation: 2689

In iOS7 UITextField with secureTextEntry ruins layout in other text fields

I am noticing very strange behavior of UITextField in iOS7 (works fine on < iOS7).

Easiest scenario to reproduce this bug:

Suddenly the font and its placement will be broken like so (grayed - proper size/positioning):

UITextField bug

I created a super-simple project that illustrates this: https://github.com/jkrzemie/UITextFieldBug

Looking for a creative solution as this looks like an iOS7 bug...

Upvotes: 0

Views: 216

Answers (1)

Jacob K
Jacob K

Reputation: 2689

... seconds later ...

Easiest solution is to be elegant and execute the self.text = ... logic in -(void)textFieldDidBeginEditing:(UITextField *)textField , it works flawlessly.

Upvotes: 1

Related Questions