Zeichnen Sie einen Kreis mit Core-Grafik-Kontext, in iOS - Objective-C oder Swift

Ich bin das zeichnen eines Kreises auf diese Weise:

CGContextRef contextRef = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(contextRef, 2.0);
//CGContextSetRGBFillColor(contextRef, 0, 0, 1.0, 1.0);
//CGContextSetRGBStrokeColor(contextRef, 0, 0, 1.0, 1.0);
 CGContextSetStrokeColorWithColor(contextRef, [color CGColor]);
CGRect circlePoint = (CGRectMake(coordsFinal.x, coordsFinal.y, 50.0, 50.0));

CGContextFillEllipseInRect(contextRef, circlePoint);

Wollte ich wissen, wie kann die im inneren des Kreises leer, so dass ich sehen kann, was dahinter steht.

InformationsquelleAutor user2014474 | 2013-02-25
Schreibe einen Kommentar