![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS动画
BianHuanShiZhe
这个作者很懒,什么都没留下…
展开
-
iOS之高级动画的CAKeyframeAnimation 关键帧动画
1 实现左右摇动动画CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"transform.rotation"];CGFloat angel = M_PI_4 / 12.0;[anim setValues:@[@(angel), @(-angel), @(angel)]];[anim s...原创 2020-03-19 17:37:23 · 252 阅读 · 0 评论 -
CALayer的基本使用
UIImageView *imageView = [[UIImageView alloc]initWithImage:image]; [self.view addSubview:imageView];// 给图片设置阴影 // 提示,在imageView中,图层不止一个,如果要实现圆角效果,需要设置一个遮罩属性 // masksToBounds属性可以让imageVi...原创 2019-12-31 00:59:08 · 177 阅读 · 0 评论 -
iOS的中的动画
iOS中的基本动画iOS的动画需要导入#import <QuartzCore/QuartzCore.h>框架通过点击屏幕触发动画- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)eventUITouch *touch = touches.anyObject; // 拿到触摸对象CGPoint lo...原创 2019-12-29 21:40:02 · 123 阅读 · 0 评论