Reputation: 222
how to draw a circle using CGContextAddArc with different sroke color and fill color?
Upvotes: 3
Views: 6235
Reputation: 2282
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);
Upvotes: 7