Created
May 22, 2012 08:39
-
-
Save anonymous/2767637 to your computer and use it in GitHub Desktop.
Wiggling Animation
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
CABasicAnimation* animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"]; | |
[animation setToValue:[NSNumber numberWithFloat:-M_PI/128]]; | |
[animation setFromValue:[NSNumber numberWithDouble:M_PI/128]]; | |
[animation setDuration:0.09]; | |
[animation setRepeatCount:NSUIntegerMax]; | |
[animation setAutoreverses:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment