iOS 画圆圈
2016-06-08 11:42
337 查看
实线圆圈:
CAShapeLayer *solidLine = [CAShapeLayer
layer];
CGMutablePathRef solidPath =
CGPathCreateMutable();
solidLine.lineWidth =
1.0f ;
solidLine.strokeColor = [UIColor
grayColor].CGColor;
solidLine.fillColor = [UIColor
clearColor].CGColor;
CGPathAddEllipseInRect(solidPath,
nil, CGRectMake(10,
25, 72,
72);
solidLine.path = solidPath;
CGPathRelease(solidPath);
[self.view.layer
addSublayer:solidLine];
CAShapeLayer *solidLine = [CAShapeLayer
layer];
CGMutablePathRef solidPath =
CGPathCreateMutable();
solidLine.lineWidth =
1.0f ;
solidLine.strokeColor = [UIColor
grayColor].CGColor;
solidLine.fillColor = [UIColor
clearColor].CGColor;
CGPathAddEllipseInRect(solidPath,
nil, CGRectMake(10,
25, 72,
72);
solidLine.path = solidPath;
CGPathRelease(solidPath);
[self.view.layer
addSublayer:solidLine];
相关文章推荐
- 二 iOS之 模仿下载进度—画圆圈
- iOS中iconfont(图标字体)的基本使用
- 利用FFmpeg+x264将iOS摄像头实时视频流编码为h264文件
- iOS开发-图文混排之cell自适应
- iOS使用系统地图定位
- ios下iframe内的加载更多为什么失效了?
- iOS开发:距离传感器
- ios开发之OC基础-类和对象
- iOS图片缩放
- iOS 9新特性之官方文档(翻译)
- 2016-05 IOS系统占有率、设备分辨率
- iOS-地理坐标转换,原生地图获取的原始坐标转换为地图真实坐标
- ios笔记-NSSet
- iOS8 开发者手册
- 一行代码实现iOS序列化与反序列化(runtime)
- iOS开发调试技巧总结(持续更新中)
- iOS崩溃调试的使用和技巧总结
- 学习iOS动画看我就够了!!转载
- iOS的各种学习资源总结
- iOS之self.xxx与_xxx的区别