Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UILabel and fonts

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?

like image 974
samir Avatar asked Feb 22 '12 12:02

samir


1 Answers

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

like image 161
Oscar Gomez Avatar answered Oct 16 '22 17:10

Oscar Gomez