Helvetica Neue Light,iOS Helvetica Neue Light,iOS ios ios

Helvetica Neue Light,iOS


The font name you used is incorrect, try:

Objective-C

myLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:32.0f];

Swift

myLabel.font = UIFont(name: "HelveticaNeue-Light", size: 32.0)

On iOS Fonts you will find the full list of fonts and their names.


Here is a link where all the supported fonts are available for iOS.

HelveticaNeue is supported in iOS and its Keyword is "HelveticaNeue"


UPDATE FOR SWIFT 3

For the past few month, swift approach towards init has changed, I would recommend not to use init in Swift 3

label.font = UIFont(name: "HelveticaNeue-Light", size: 17.0)

Objective- C :

[label setFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:17.0f]];

Swift 2.2 :

label.font = UIFont.init(name: "HelveticaNeue-Light", size: 17.0)

UPDATE :

This has worked for me. Write this code below your label declarations.

It sets all the UILabel under a function with same font.

Objective-C :

[[UILabel appearance]setFont:[UIFont fontWithName:@"HelveticaNeue-Thin" size:32.0f]];

Swift 2.2 :

UILabel.appearance().font = UIFont.init(name: "HelveticaNeue-Thin", size: 32.0)

To set font to particular UILabel use this code :

Objective-C :

[labelName setFont:[UIFont fontWithName:@"HelveticaNeue-Thin" size:15.0f]];

Swift 2.2 :

label.font = UIFont.init(name: "HelveticaNeue-Light", size: 17.0)


matomo