Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS10: UITextfield hangs with long input when secureTextEntry

Strange behaviour from UITextfield with secureTextEntry. Platform : iOS10 Both on iPhone (Device) and Simulator. UITextfield hangs with long input which is greater than the keyboard's width, when secureTextEntry is on. The keyboard's pressed key stays popped out.

Keyboard key stays popped out

like image 529
Somal Avatar asked Dec 08 '22 20:12

Somal


1 Answers

Yes, it is a bug.

Bug is like :

An app can freeze when a user types a large password into a textfield that tries to scale down the text to fit.

Check it : https://openradar.appspot.com/28590124

Possible solution : Disable to Fit for password/secured field.

  1. change the secure password character in UITextfield
  2. Secure UITextField text change to (*) asterisk character
like image 132
Jamshed Alam Avatar answered Mar 08 '23 11:03

Jamshed Alam