[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:0.5];

......

......

[UIViewcommitAnimations];