-
-
Save DonMag/38672205e7dd7bac2791 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
// Note: this will only rotate it 180 degrees, once | |
UIView.animateWithDuration(1.0, | |
animations: {self.arrowImageView.transform = CGAffineTransformMakeRotation(CGFloat(M_PI))} | |
) | |
// Note: this will rotate it 180 degrees, each time it's called | |
UIView.animateWithDuration(1.0, | |
animations: {self.arrowImageView.transform = CGAffineTransformRotate(self.arrowImageView.transform, CGFloat(M_PI))} | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment