首页 > 其他 > 详细

UIBezierPath基本使用

时间:2017-01-11 12:44:25      阅读:180      评论:0      收藏:0      [点我收藏+]

  UIBezierPath * aPath = [UIBezierPath bezierPathWithArcCenter:point radius:5 startAngle:0 endAngle:2 * 3.14 clockwise:YES];

                

                aPath.lineWidth = 1;

                aPath.lineCapStyle = kCGLineCapRound; //线条拐角

                aPath.lineJoinStyle = kCGLineCapRound; //终点处理

                //设置填充颜色

                [[UIColor whiteColor]setFill];

                //设置线的颜色

                [[UIColor colorWithRed:1.00f green:0.36f blue:0.00f alpha:1.00f] setStroke];

                

                [aPath stroke];

                [aPath fill];

            

                //小圆

                UIBezierPath * Path = [UIBezierPath bezierPathWithArcCenter:point radius:2 startAngle:0 endAngle:2 * 3.14 clockwise:YES];

                

                Path.lineWidth = 1;

                Path.lineCapStyle = kCGLineCapRound; //线条拐角

                Path.lineJoinStyle = kCGLineCapRound; //终点处理

                

                [[UIColor colorWithRed:1.00f green:0.36f blue:0.00f alpha:1.00f] setFill];

                

                [Path stroke];

                [Path fill];

 

UIBezierPath基本使用

原文:http://www.cnblogs.com/zhang6332/p/6273066.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!