// 首尾动画
// beginAnimations表示此后的代码要“参与到”动画中
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
self.headImageView.bounds = rect;
// self.headImageView.alpha = 0;
// commitAnimations,将beginAnimation之后的所有动画提交并生成动画
[UIView commitAnimations];
iOS beginAnimations 做首尾动画
最新推荐文章于 2021-01-12 12:11:14 发布