文章分类 -  ios之自定义图形

摘要:CGContextAddArc画圆的使用(附CGContext画图基本过程) 最近老画圆,所以对CGContextAddArc的接触比较多。 CGContextAddArc(Context, CGFloat x , CGFloat y, CGFloat radius, CGFloat startAn 阅读全文
posted @ 2019-01-04 13:27 sundaysios 阅读(787) 评论(0) 推荐(0) 编辑
摘要:#import <UIKit/UIKit.h> @interface TriangleButton : UIView @property (nonatomic, copy) void(^buttonClick)(); @end #import "TriangleButton.h" @interfac 阅读全文
posted @ 2019-01-04 12:02 sundaysios 阅读(526) 评论(0) 推荐(0) 编辑
摘要:http://www.cocoachina.com/ios/20180607/23698.html 引子 PD:我们需要的界面大概是这样子的,可以实现吗? 技术:ok,这个界面很简单,我们用基本的view就可以实现。 数日后 UED:我们的设计是这样子的 技术:呃,晴天霹雳啊,为什么搞的这么复杂,又 阅读全文
posted @ 2019-01-04 11:19 sundaysios 阅读(317) 评论(0) 推荐(0) 编辑
摘要:CAShapeLayer *border = [CAShapeLayer layer]; //虚线的颜色 border.strokeColor = [UIColor redColor].CGColor; //填充的颜色 border.fillColor = [UIColor clearColor]. 阅读全文
posted @ 2018-08-30 19:38 sundaysios 阅读(318) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示