UIFont doesn't appear to manage color, is there a way to change the font color using UIStringDrawing.h or specifically:
- (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font
Thanks
UIFont doesn't appear to manage color, is there a way to change the font color using UIStringDrawing.h or specifically:
- (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font
Thanks
Take a look at UIColor
. Specifically:
- (void) setFill;
For example:
[[UIColor redColor] setFill];
[myString drawInRect:rect withFont:font];
Other methods include setStroke
and just set
to set both fill and stroke. Fonts use the fill color.