// 首尾动画
// beginAnimations表示此后的代码要“参与到”动画中
[UIView beginAnimations:nil context:nil];
//变化需要的时间
[UIView setAnimationDuration:2.0];
//变化....
// commitAnimations,将beginAnimation之后的所有动画提交并生成动画
[UIView commitAnimations];
ios动画实现
最新推荐文章于 2024-07-15 16:49:10 发布