UILabel and fonts

samir picture samir · Feb 22, 2012 · Viewed 13.3k times · Source

How can I can use the font: HelveticaNeue Regular in my labels? I can do it with IB, but programmatically that seems that it's not possible.

Is HelveticaNeue-Medium the regular one or HelveticaNeue?

Answer

Oscar Gomez picture Oscar Gomez · Feb 22, 2012

You can find all fonts here:

list of iPhone fonts

For Helvetica you would do:

In Objective-C:

UIFont *helvFont = [UIFont fontWithName:@"HelveticaNeue" size:14.0];

In Swift:

let helvFont = UIFont(name: "HelveticaNeue", size: 14.0)

So the regular one would indeed by HelveticaNeue