Skip to content

Instantly share code, notes, and snippets.

@stsievert
Created April 7, 2013 21:25
Show Gist options
  • Save stsievert/5332606 to your computer and use it in GitHub Desktop.
Save stsievert/5332606 to your computer and use it in GitHub Desktop.
StackOverflow animation
[self.view.layer removeAllAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:0.1];
[UIView setAnimationCurve: UIViewAnimationCurveLinear];
[UIView commitAnimations];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment