Skip to content

Instantly share code, notes, and snippets.

@timd
Created February 15, 2012 12:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timd/1835417 to your computer and use it in GitHub Desktop.
Save timd/1835417 to your computer and use it in GitHub Desktop.
didSwipeLeftInCell:
-(IBAction)didSwipeLeftInCell:(id)sender {
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView animateWithDuration:1.0 animations:^{
[_topView setFrame:CGRectMake(-10, 0, 320, 80)];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.15 animations:^{
[_topView setFrame:CGRectMake(0, 0, 320, 80)];
}];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment