I have the following problem - I want to change the UITextField font to a custom one. I am using this line of code:
textField.font = [UIFont fontWithName:@"fontname.ttf" size:20];
I want to use this font: Neurm.ttf Can you please tell me what is wrong or just try it out and tell me is it working?
You doing wrong Because no need to set extension (fontname.ttf) in your string.
textField.font = [UIFont fontWithName:@"NEURM TTF" size:20];
and check following links how to use custom font in ios.
1.How to use custom font in iOS Apps?
2.iPhone Development: how to use custom fonts?
Its possible you may have not gone through some necessary steps to embed a custom font in your app.
Check;
and see if you missed anything.
here
someTf.font = [UIFont fontWithName:@"AlexBrush-Regular" size:20];
This is working correctly no need to give .ttf ext
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