1>准备开始一个动画
[UIView beginAnimations:nil context:nil];
// 设置动画执行的时间
[UIView setAnimationDuration:1.0];
2>修改控件属性的代码,就可以实现动画
3>提交动画
[UIView commitAnimations];