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.
精彩评论