I’ve looked at the following link:
Setting UILabel – Font through code – generates error – iPhone
Which provides code to see all the available iOS fonts. For HelveticaNeue we get the following:
HelveticaNeue-Italic
HelveticaNeue-Bold
HelveticaNeue-BoldItalic
HelveticaNeue
Why does Interface Builder provide a slew of other options for fonts though? I’ve plopped a UILabel down and I see options for HelveticaNeue-Medium and HelveticaNeue-Light for example and they seem to work fine when compiling ?
The reason I’m asking is that I’m now programmatically generating a UILabel and would like to set it’s font to HelveticaNeue-Medium but it looks like that’s not an option?!
The Interface Builder shows all fonts available on the Mac. Not all of them are available to iOS. Before using a font, make sure that is available on iOS.