I need to create UIFont with Helvetica-Regular, I use this code:
UIFont *font = [UIFont fontWithName:@"Helvetica-Regular" size:size];
But font is nill. How to do that correctly?
Well you can view the list of fonts supported by iOS here . The font Helvetica Regular does not feature in this list. If you want to go for this font name specifically then you would have to add this as a custom font. Or you could simply use the Helvetica font name. To go for the custom fonts you could browse through these links :-
How to use custom fonts in iPhone SDK?
How to include and use new fonts in iPhone SDK?
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