Created
June 16, 2014 09:33
-
-
Save Thomvis/e4a30008c3b685d8c8fd to your computer and use it in GitHub Desktop.
Make a view 'pop' in place
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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