CGAffineTransformMakeScale & CGAffineTransformScale
Core Animation基础介绍、简单使用CALayer以及多种动画效果
【IOS功能实现】之Core Animation动画开发总结(CALayer)
iOS开发UI篇—核心动画简介
ios缩放动画
用法:(这里用一个button控件来实现) UIButton *transformButton; //从小变大: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.2]; [UIView setAnimationDelegate:self]; transformButton.transform = CGAffineTransformScale([self transformForOrientation], 1.1, 1.1); [UIView commitAnimations]; 同理 //大变小 transformButton.transform = CGAffineTransformScale([self transformForOrientation], 0.001, 0.001);
时间: 2024-11-05 06:29:04