开发者

Drawing text, newline character, Quartz 2D

I was trying to draw a text in Quartz. For example:

20.0%
1/开发者_Python百科5

I thought I could do something like this:

NSString *label = [NSString stringWithFormat:@"%1.1f%%\n1/5",someValue * 100];

However the newline gets drawn as a box. Is there a way around this? Thanks!


Split up the string into separate text elements, each on their own line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜