Setting UILabel - Font through code - generates error - iPhone

十年热恋 提交于 2019-11-28 20:50:33
fbrereto

Here is a list of fonts available in the iPhone OS. It would seem Arial Black is not among them.

Try @"Arial-BoldMT"

Besides, you could always make yourself a list of available fonts:

for( NSString *familyName in [UIFont familyNames] ) {
  for( NSString *fontName in [UIFont fontNamesForFamilyName:familyName] ) {
    NSLog(@"%@", fontName);
  }
}

There are plenty of font apps in the App Store to see all the fonts - one of which is iFonts, an app I developed so I could email the list of fonts to someone else on the team.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!