Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created November 20, 2012 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romyilano/4120628 to your computer and use it in GitHub Desktop.
Save romyilano/4120628 to your computer and use it in GitHub Desktop.
Simple animation in IOS
CGPoint center = CGPointMake(_car.center.x, self.view.frame.origin.y + _car.frame.size.height/2);
[UIView animateWithDuration:3 animations:^{
_car.center =center;
}
completion:^(BOOL finished) {
[self rotate];
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment