0
此代碼在模擬器中工作。當我們加載到設備中沒有working.In控制檯它顯示爲錯誤:
Unable to load font BARBATRI.ttf
CCLabelTTF在模擬器中工作,但不在設備中
我的代碼是: -
CCLabelTTF *score = [CCLabelTTF labelWithString:[NSString stringWithFormat:@"Score : %d",[CommonUserDetails sharedUserDetails].GameScore] fontName:@"BARBATRI.ttf" fontSize:18];
score.position = ccp(240,160);
score.anchorPoint = ccp(0.5, 0.5);
[self addChild:score];
感謝ü非常 – user1215720
沒有問題。你可以標記答案是正確的,以幫助其他人找到它=) – Morion