Skip to content

Instantly share code, notes, and snippets.

@Thomvis
Created June 16, 2014 09:33
Show Gist options
  • Save Thomvis/e4a30008c3b685d8c8fd to your computer and use it in GitHub Desktop.
Save Thomvis/e4a30008c3b685d8c8fd to your computer and use it in GitHub Desktop.
Make a view 'pop' in place
CGAffineTransform initialTransform = label.transform;
label.transform = CGAffineTransformScale(initialTransform, 0.99, 0.99);
[UIView animateWithDuration:1.0 delay:0 usingSpringWithDamping:0.5 initialSpringVelocity:1000 options:0 animations:^{
label.transform = initialTransform;
} completion:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment