摘要: 参考:http://blog.csdn.net/hdfqq188816190/article/details/51361011 CAShapeLayer 是 CALayer 的子类,但是比 CALayer 更灵活,可以画出各种图形,当然,你也可以使用其他方式来画,随你。 首先CAShapeLayer 阅读全文
posted @ 2017-09-29 16:24 gallon 阅读(229) 评论(0) 推荐(0)
摘要: 转自: http://blog.csdn.net/hdfqq188816190/article/details/51435219 UIBezierPath主要用来绘制矢量图形,它是基于Core Graphics对CGPathRef数据类型和path绘图属性的一个封装,所以是需要图形上下文的(CGCo 阅读全文
posted @ 2017-09-29 15:05 gallon 阅读(389) 评论(0) 推荐(0)
摘要: 转自:https://segmentfault.com/a/1190000008580771 CAEmitterLayer和CAEmitterCell 主要来实现简单的例子效果: 代码如下: 阅读全文
posted @ 2017-09-29 14:52 gallon 阅读(211) 评论(0) 推荐(0)