博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
核心动画 - CAKeyframeAnimation 简单应用
阅读量:7112 次
发布时间:2019-06-28

本文共 361 字,大约阅读时间需要 1 分钟。

 

核心动画: 登录按钮的抖动效果:

CAKeyframeAnimation * kfAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.translation.x"];        kfAnimation.values = @[@-10,@0,@10,@0];        kfAnimation.repeatCount = 2;        kfAnimation.duration = 0.2;        [loginButton.layer addAnimation:kfAnimation forKey:nil];

 

转载于:https://www.cnblogs.com/code-Officer/p/6016466.html

你可能感兴趣的文章
Vrrp协议
查看>>
项目中js调用service和procedure的办法
查看>>
用友UAP
查看>>
Tomcat error: A child container failed during start
查看>>
jquery 时间戳和日期时间转化
查看>>
Codeforces Round #370 (Div. 2) C. Memory and De-Evolution 水题
查看>>
MySQL数据备份之mysqldump使用
查看>>
mysql中根据一个字段相同记录写递增序号,如序号结果,如何实现?
查看>>
sql STUFF用法
查看>>
fdisk 分区
查看>>
别说无所谓
查看>>
irb的子会话 - 相思雨 - 博客园
查看>>
python 网络编程
查看>>
aspx 页面数据绑定 前台数据绑定
查看>>
《推荐系统实践》样章:如何利用用户标签数据
查看>>
U-Boot Makefile文件分析
查看>>
Puppetmaster高可用和可扩展的方案设计
查看>>
[2013EJDE]Osgood type regularity criterion for the $3$D Newton-Boussinesq equations
查看>>
黄疸案
查看>>
[转载]ASP.NET伪静态页面的实现和伪静态在IIS7.0中的配置
查看>>