【发布时间】:2015-02-03 02:58:26
【问题描述】:
我有以下内容,我试图以大字体获取此标签。我正在执行以下操作:
myScoreLabel.string = [NSString stringWithFormat:@"Score: %d", totalPointsPlayer];
myScoreLabel.fontName = [UIFont fontWithName:@"Arial" size:30];
我收到此错误:Incompatible pointer types assigning NSString *'from UIFont *'
他们是改变字体大小的另一种方式吗?谢谢我对Objective C编码有点陌生,我正在尝试在构建一个小游戏的同时学习。提前致谢。
【问题讨论】:
标签: ios iphone fonts cocos2d-iphone size