I'm trying a simple animation by moving a subclass of UIView when a button is pressed. When the button is pressed the view moves xx units away from the original position, the bug is that it comes back to the original position after going xx units away. I want it to stop at the new position. Whats wrong in my code?
[UIView animateWithDuration:0.5f animations:^{
self.analogStick.frame = CGRectOffset(self.analogStick.frame, 0, -10);
}];