how to animate animate UIView or UILable like swing
CGPoint newLeftCenter = CGPointMake( 00.0f + label.frame.size.width / 2.0f, label.center.y);
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
label.center = newLeftCenter;
[UIView commitAnimations];
This will animate from left to right!
i need to animate from right to left too!
so when my action trigger it UIVIew or label need to move from left to right and right to left.
@thanks in advance
If you mean that you want to add two sequential animations you could do the following by using
setAnimationDidStopSelector