Last active
August 29, 2015 14:00
-
-
Save rounak/11383753 to your computer and use it in GitHub Desktop.
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
POPSpringAnimation *springAnimation = [POPSpringAnimation animation]; | |
springAnimation.property = [POPAnimatableProperty propertyWithName:kPOPViewCenter]; | |
springAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.view.bounds.size.width/2, self.view.bounds.size.height/2)]; | |
springAnimation.velocity = [NSValue valueWithCGPoint:CGPointMake(100, 10)]; | |
[imageView pop_addAnimation:springAnimation forKey:@"center"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment