1 图片旋转
[UIView animateWithDuration:0.2 animations:^{
_titleBtn.imageView.transform = CGAffineTransformMakeRotation(-M_PI+0.01);
}];
本文介绍了一种使用UIView动画实现图片旋转的方法。通过设置按钮的imageView属性和应用CGAffineTransformMakeRotation函数,可以创建一个顺时针旋转的动画效果。该技术适用于iOS开发中需要动态旋转图片的场景。
1 图片旋转
[UIView animateWithDuration:0.2 animations:^{
_titleBtn.imageView.transform = CGAffineTransformMakeRotation(-M_PI+0.01);
}];

被折叠的 条评论
为什么被折叠?