第一种 头尾式动画
[UIView beginAnimations:nil context:(nil)]; [UIView setAnimationDuration:2]; self.btnIcon.center = centerPoint; [UIView commitAnimations]; [UIView beginAnimations:nil context:(nil)]; [UIView setAnimationDuration:2]; self.btnIcon.bounds = originBounds; [UIView commitAnimations];
第二种 block
[UIView animateWithDuration:1.0 animations:^{ self.btnIcon.center = centerPoint; }]; }