博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS-常用的两个弹簧动画pop
阅读量:4308 次
发布时间:2019-06-06

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

POPSpringAnimation *popAna = [POPSpringAnimation animationWithPropertyNamed:kPOPLayerPosition];popAna.springBounciness = 10;popAna.springSpeed = 10;popAna.toValue = [NSValue valueWithCGPoint:CGPointMake(self.width/2, self.height/2 - 100)];

 

POPSpringAnimation *sprintAnimation = [POPSpringAnimation animationWithPropertyNamed:kPOPViewScaleXY];sprintAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(1.0, 1.0)];sprintAnimation.velocity = [NSValue valueWithCGPoint:CGPointMake(1.6, 1.6)];sprintAnimation.springBounciness = 10.f;

 

转载于:https://www.cnblogs.com/wangkejia/p/9830374.html

你可能感兴趣的文章
linux source命令
查看>>
openstack报错解决三
查看>>
乙未年年终总结
查看>>
子网掩码
查看>>
第一天上班没精神
查看>>
启动eclipse报错:Failed to load the JNI shared library
查看>>
eclipse安装插件的两种方式在线和离线
查看>>
linux下源的相关笔记(suse)
查看>>
linux系统分区文件系统划分札记
查看>>
Linux(SUSE 12)安装Tomcat
查看>>
Linux(SUSE 12)安装jboss4并实现远程访问
查看>>
Neutron在给虚拟机分配网络时,底层是如何实现的?
查看>>
netfilter/iptables全攻略
查看>>
Overlay之VXLAN架构
查看>>
Eclipse : An error occurred while filtering resources(Maven错误提示)
查看>>
在eclipse上用tomcat部署项目404解决方案
查看>>
web.xml 配置中classpath: 与classpath*:的区别
查看>>
suse如何修改ssh端口为2222?
查看>>
详细理解“>/dev/null 2>&1”
查看>>
suse如何创建定时任务?
查看>>