上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 33 下一页
摘要: //: Playground - noun: a place where people can play import UIKit // 初始化一个整数数组 var arr = [1, 3, 5, 7, 8, 10, 12, 2, 0, 11, 9] // 排序, 默认是从小到大排序 arr.sor 阅读全文
posted @ 2016-01-31 12:01 Rinpe 阅读(268) 评论(0) 推荐(0)
摘要: //: Playground - noun: a place where people can play import UIKit // 初始化一个整数数组 var arr = [1, 3, 5, 7, 8, 10, 12, 2, 0, 11, 9] // 排序, 默认是从小到大排序 arr.sor 阅读全文
posted @ 2016-01-31 11:18 Rinpe 阅读(222) 评论(0) 推荐(0)
摘要: 效果图: #import "ViewController.h" #import <POP.h> @interface ViewController () @property (nonatomic, weak) UIView *testView; @end @implementation ViewCo 阅读全文
posted @ 2016-01-28 19:53 Rinpe 阅读(4468) 评论(0) 推荐(0)
摘要: 效果图: #import "ViewController.h" #import <POP.h> @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidL 阅读全文
posted @ 2016-01-28 17:38 Rinpe 阅读(532) 评论(0) 推荐(0)
摘要: POP动画引擎是facebook提供的一个开源框架, 可以实现很多的动画效果, 这里就不一一介绍啦, 有兴趣的童鞋请移步:https://github.com/facebook/pop下面简单的讲一下POP动画引擎中Layer与CALayer的区别:这里, 代码做的都是同一个效果: 执行位移动画3秒... 阅读全文
posted @ 2016-01-25 22:32 Rinpe 阅读(776) 评论(0) 推荐(0)
摘要: CADisplayLink类似NSTimer是一个定时器,只不过是一秒会调用60次指定的方法使用方法:#import "ViewController.h"@interface ViewController ()@property (nonatomic, strong) CADisplayLink *... 阅读全文
posted @ 2016-01-25 20:51 Rinpe 阅读(543) 评论(0) 推荐(0)
摘要: 效果图: 代码部分: RPGradientAnimationView.h #import <UIKit/UIKit.h> typedef enum : NSUInteger { RPGradientAnimationViewColorDirectionUpToDown = 1, // 从上到下 RP 阅读全文
posted @ 2016-01-25 16:22 Rinpe 阅读(310) 评论(0) 推荐(0)
摘要: 效果图:github:https://github.com/RinpeChen/CAGradientLayerBasicDemo 阅读全文
posted @ 2016-01-25 10:36 Rinpe 阅读(398) 评论(0) 推荐(0)
摘要: 通过修改CAShapeLayer的StrokeStart与StrokeEnd的值来实现画图动画 效果图: 代码部分: #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) CASha 阅读全文
posted @ 2016-01-21 17:36 Rinpe 阅读(1196) 评论(0) 推荐(0)
摘要: CAShapeLayer是基于贝塞尔曲线而存在的, 如果没有贝塞尔曲线提供路径来画出图形, CAShapeLayer就没有存在的意义, CAShapeLayer可以使得不用在drawRect:方法中实现画图. 另外, CAShapeLayer是属于CoreAnimation框架的, 是基于GPU的来 阅读全文
posted @ 2016-01-21 15:24 Rinpe 阅读(1587) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 33 下一页