Created
August 16, 2016 08:25
-
-
Save AKupetskiy/331f542dd9d7cc1848cc744cd0611a13 to your computer and use it in GitHub Desktop.
Fix textField text Font after toggling 'secureEntry' property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Kind of ugly hack to make the text refresh after the toggle. The size of the secure fonts are different than the normal ones and it shows trailing white space | |
[self resignFirstResponder]; | |
NSString *text = self.text; | |
self.text = @" "; | |
self.text = text; | |
[self becomeFirstResponder]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment