Take a look at UIColor. In particular:
- (void) setFill;
For example:
[[UIColor redColor] setFill];
[myString drawInRect:rect withFont:font];
Other methods include setStrokeand just setto set both fill and stroke. Fonts use fill color.
source
share