I\'m having trouble with drawing some lines that are stroked with a color and then filling their insides (they make a polygon) with another one.
UIColor *hou
You can use
CGContextDrawPath(context, kCGPathFillStroke);
instead of
CGContextFillPath(context);
CGContextStrokePath(context);
The problem is that both CGContextFillPath() and CGContextStrokePath(context)
clear the current path, so that only the first operation succeeds, and the second
operation draws nothing. CGContextDrawPath() combines fill and stroke without
clearing the path in between.