I am experiencing the same problem as here Custom UITextField font changes in edit mode and really can handle the solution.
I have 4 UITextFields that I assigned to custom fonts in ViewDidLoad. This works, and they look great, however, when you click the text edit box, the font returns to the default text, and when the resignedfirstresponder returns, the custom font is returned.
- (void)viewDidLoad { [super viewDidLoad]; { UIFont *twoDumb = [UIFont fontWithName:@"Dumb" size:20.f]; lbl1.font = twoDumb; broughtForward.font = twoDumb; lbl2.font = [UIFont fontWithName:@"Dumb" size:24.f]; amountTextfield.font = twoDumb; lbl3.font = twoDumb;
If I use system fonts, then the text box works as it should, so there should be something to do with this font file, maybe?
ios fonts iphone uitextfield
Darren
source share