Skip to content

Instantly share code, notes, and snippets.

@KatagiriSo
Created December 27, 2011 04:58
Show Gist options
  • Save KatagiriSo/1522762 to your computer and use it in GitHub Desktop.
Save KatagiriSo/1522762 to your computer and use it in GitHub Desktop.
Animation
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[self setFrame:CGRectMake(moveToPoint.x, moveToPoint.y, self.frame.size.width, self.frame.size.height)];
[UIView commitAnimations];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment