Last active
December 25, 2015 22:29
-
-
Save nickfox/7050032 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
[UIView beginAnimations:@"buttons" context:nil]; | |
[UIView setAnimationDuration:0.5]; | |
[UIView setAnimationDelegate:self]; | |
for (UIImageView *imageView in glowImages) | |
{ | |
if (isOK) | |
{ | |
[UIView setAnimationDidStopSelector:@selector(onContinueCorrectAnimation)]; | |
[imageView setAlpha:0.5]; | |
} | |
else | |
{ | |
if ([[pickerDict objectForKey:@"gameSettingsSound"] isEqualToString:@"YES"]) | |
{ | |
[[SoundPlayer sharedPlayer] playFile:[files objectAtIndex:2] volume:1.0f loops:0]; | |
} | |
[UIView setAnimationDidStopSelector:@selector(onContinueIncorrectAnimation)]; | |
[imageView setAlpha:0.5]; | |
} | |
} | |
[UIView commitAnimations]; | |
///////////////////////////////////////////////////// | |
if (!isOK && [[pickerDict objectForKey:@"gameSettingsSound"] isEqualToString:@"YES"]) | |
{ | |
[[SoundPlayer sharedPlayer] playFile:[files objectAtIndex:2] volume:1.0f loops:0]; | |
} | |
[UIView setAnimationDidStopSelector:@selector(onContinueIncorrectAnimation)]; | |
[imageView setAlpha:0.5]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment