I have seen many threads but not finding any concrete solution for this problem.
I have UITextfield created using XIB nothing has been done programmaticaly for that field.
As soon as i start typing, the font of textfield changes and once i move the focus out of it and as keyboard disappears the font size reduces.
how to disable this. I dont want the font to change when focus is moved out of textfield.
Okie,
I guess I have found the solution.
Create a IBOutlet for the UITextfield.
in textFieldDidEndEditing and textFieldShouldReturn call below lines
[self.yourTextField setFont:nil];
[self.yourTextField setFont:"your font name and size"];
setting the font to nil is key without which new font will not be set
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With