
动画
yibella
轨迹人生-偶尔提醒-开发者;
产品管理;
项目管理;
iOS开发;
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UI 动画之UIView动画 实现两个页面之间的切换
#pragma mark 准备两个视图 模拟两个页面之间的切换 //准备两个View 模拟两个页面 self.aView = [[UIView alloc]initWithFrame:[UIScreen mainScreen].bounds]; _aView.backgroundColor = [UIColor magentaColor];原创 2015-10-06 20:30:09 · 1632 阅读 · 0 评论 -
UI 动画之反射变换的平移
@interface ViewController () //准备一个用于动画的UIView @property(nonatomic,strong) UILabel *customLabel; //静止,用来对比 @property(nonatomic,strong) UIView *staticView; @end原创 2015-10-06 19:26:14 · 510 阅读 · 0 评论 -
UI 动画之UIView动画的 四种 使用含有block的类方法 实现动画
#pragma mark 使用 含有block的类方法 //第一种: [UILabel animateWithDuration:2 animations:^{ //动画执行的方式。-旋转,平移,缩放等。 }]; //第二种 [UILabel ani原创 2015-10-06 20:06:33 · 643 阅读 · 0 评论 -
UI 动画之CALayer+CAAnimation 之 CAKeyframeAnimation
#pragma mark 关键帧动画 CAKeyframeAnimation ---按着路径走 //keyPath需要强打 并且是固定对应的。 CAKeyframeAnimation *keyFrameAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"]; //第一步:准备原创 2015-10-06 21:21:50 · 379 阅读 · 0 评论 -
UI 动画之CALayer+CAAnimation 之 CABasicAnimation
#pragma mark 为CALayer+CAAnimation 准备视图 self.customLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; _customLabel1.backgroundColor = [UIColor cyanColor原创 2015-10-06 21:07:18 · 382 阅读 · 0 评论 -
UI 动画之UIView动画之间的一些方法
放在开启动画和结束动画之间的。 //设置动画间隔 [UILabel setAnimationDuration:3]; //设置动画延时 [UILabel setAnimationDelay:0.5]; //设置动画重复的次数 [UILabel setAnimat原创 2015-10-06 19:43:36 · 474 阅读 · 0 评论 -
UI 动画之CALayer+CAAnimation 之 CATransition
#pragma mark CATransition /* enum AnimationType:Int { case Fade = 1, //淡入淡出 Push, //推挤 Reveal,原创 2015-10-06 21:38:45 · 389 阅读 · 0 评论 -
UI 动画之CALayer+CAAnimation 之 CAAnimationGroup
#pragma mark 组动画 CAAnimationGroup CAAnimationGroup *groupAnimation = [CAAnimationGroup animation]; //把前两篇文章中定义的basicAnimation或者keyframeAnimation放在这个组中,可以任意组合的。 grou原创 2015-10-06 21:29:04 · 406 阅读 · 0 评论 -
UI 动画之反射变换的旋转
#pragma mark 旋转 //第一种:最原始的。 _customLabel.transform = CGAffineTransformMake(cos(M_PI_4), -sin(M_PI_4), sin(M_PI_4), cos(M_PI_4), 0, 0); //第二种: _customLab原创 2015-10-06 19:56:39 · 460 阅读 · 0 评论 -
UI 动画之反射变换的缩放
#pragma mark 缩放 //第一种:最原始的缩放,在原始状态的基础上。 _customLabel.transform = CGAffineTransformMake(2, 0, 0, 2, 0, 0); //第二种:iOS内部封装了另外几个参数的处理,只需要外部传入要缩放的比例两个参数。 _cus原创 2015-10-06 19:49:25 · 381 阅读 · 0 评论 -
定时器+反射变换 --->模拟一个音乐播放器的音乐专辑旋转
//准备imgView @property(nonatomic,strong) UIImageView *imgView; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad];原创 2015-10-06 20:42:47 · 523 阅读 · 0 评论