Reputation: 2689
I am noticing very strange behavior of UITextField in iOS7 (works fine on < iOS7).
Easiest scenario to reproduce this bug:
self.text = @"something";
Suddenly the font and its placement will be broken like so (grayed - proper size/positioning):
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
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