/**绘制圆形*/ CGContextRef contextRef=UIGraphicsGetCurrentContext(); CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0); CGContextStrokePath(contextRef); /**绘制椭圆*/ CGContextAddEllipseInRect(contextRef, CGRectMake(50, 400, 200, 100)); CGContextStrokePath(contextRef);
时间: 2024-12-29 05:18:47