UIView 动画

frame
bounds
center
transform
alpha
backgroundColor
contentStretch

例如一个视图淡出屏幕,另外一个视图出现的代码

[UIView animateWithDuration:1.0 animations:^{ firstView.alpha = 0.0;  secondView.alpha = 1.0; }];

center = CGPointMake(self.view.frame.size.width/2, 240+10);

http://www.cnblogs.com/wendingding/p/3802830.html

猜你喜欢

转载自lxj8749.iteye.com/blog/2185078