0

是否可以将 SKLabelNode 上的 fontSize 设置为某个动态值,使其成为最大允许值,以便显示整个文本。

4

1 回答 1

2

每当标签更新时,只需调用一个方法 say :adjustLabel。在那里面

- (void)adjustLabel{
    label.text = //Your Text;
    label.fontSize = //Your fontSize; 
    label.position = // Your position;
    // whatever attributes of the label you want to change, add them here.
}
于 2014-10-16T10:01:02.530 回答