UIView的动画是通过修改控件的属性来达到动画的效果,如:渐变, 移动. 废话不多说,直接上代码: - (void)loadView{ [super loadView]; _leftView = [[UIView alloc]initWithFrame: CGRectMake(, , , )]; _rightView = [[UIView alloc]initWithFrame: CGRectMake(, , , )]; _leftView.backgroundColor = [UIColor…