您正在寻找-beginAnimations:上下文:和-commitAnimations
方法在
UIView.
简而言之,你做的事情就像:
[UIView beginAnimations:nil context:NULL]; // animate the following:
myLabel.frame = newRect; // move to new location
[UIView setAnimationDuration:0.3];
[UIView commitAnimations];