Try using
[UIView beginAnimations:@"stalk" context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(afterAnimationStops)] self.frame=originalSelf; [UIView commitAnimations];
And then you can implement the method
-(void)afterAnimationStops{ }
source share