views:

49

answers:

1

how to draw a circle using CGContextAddArc with different sroke color and fill color?

+2  A: 

Wouldn't something like this work?

CGContextAddArc(ctx, x, y, 1.0, 0, 2 * Pi); // Or is it 2 * M_PI?

CGContextSetFillColorWithColor(ctx, fillColor);
CGContextSetStrokeColorWithColor(ctx, strokeColor);
CGContextDrawPath(ctx, kCGPathFillStroke);
Piotr Kalinowski