Drawing circle with stroke and fill color
how to draw a circle using CGContextAddArc with different sroke color开发者_如何学运维 and fill color?
Wouldn't something like this work?
CGContextAddArc(ctx, x, y, 1.0, 0, 2 * Pi, 1); // Or is it 2 * M_PI?
CGContextSetFillColorWithColor(ctx, fillColor);
CGContextSetStrokeColorWithColor(ctx, strokeColor);
CGContextDrawPath(ctx, kCGPathFillStroke);
精彩评论