摘要: 当需要画图时我们一般创建一个UIView子类, 重写其中的drawRect方法 再drawRect方法中利用UIBezierPath添加画图 UIBezierPath的使用方法: (1)创建一个Bezier path对象。 (2)使用方法moveToPoint:去设置初始线段的起点。 (3)添加li 阅读全文
posted @ 2017-01-05 17:32 周希 阅读(7602) 评论(0) 推荐(0) 编辑
摘要: CAAnimaton动画分为CABasicAnimation & CAKeyframeAnimation CABasicAnimation动画, 顾名思义就是最基本的动画, 老规矩先上代码: gif是抄的老司机的 首先创建动画的时候我们直接指定keypath为“position”位移动画, 还有哪些 阅读全文
posted @ 2017-01-05 11:45 周希 阅读(2553) 评论(0) 推荐(0) 编辑