【发布时间】:2011-12-30 02:58:47
【问题描述】:
我正在尝试向我的 iPhone 应用程序添加自定义字体。
字体名称为:Susa-Regular.otf
我下载了字体,安装了它,然后把它拖到 xCode 上。然后我进入 info.plist 并添加一个名为“应用程序提供的字体”的行并输入 Susa-Regular.otf
UILabel *myLabel = [[UILabel alloc]initWithFrame:frame];
[myLabel setFont:[UIFont fontWithName:@"Susa-Regular" size: 35]];
当我运行应用程序时,字体还是一样的。我也没有收到任何错误消息。
知道为什么它不起作用吗?
【问题讨论】: