绘制圆形椭圆

/**绘制圆形*/
    CGContextRef contextRef=UIGraphicsGetCurrentContext();
    CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0);
    CGContextStrokePath(contextRef);
    
    /**绘制椭圆*/
    CGContextAddEllipseInRect(contextRef, CGRectMake(50, 400, 200, 100));
    CGContextStrokePath(contextRef);

 

posted @ 2015-03-31 22:29  曹县三胖暴打大猩猩  阅读(145)  评论(0编辑  收藏  举报