绘制圆形椭圆

/**绘制圆形*/
    CGContextRef contextRef=UIGraphicsGetCurrentContext();
    CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0);
    CGContextStrokePath(contextRef);
    
    /**绘制椭圆*/
    CGContextAddEllipseInRect(contextRef, CGRectMake(50, 400, 200, 100));
    CGContextStrokePath(contextRef);
原文地址:https://www.cnblogs.com/thbbsky/p/4382264.html