Skip to content

Instantly share code, notes, and snippets.

@nickfox
Last active December 25, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickfox/7050032 to your computer and use it in GitHub Desktop.
Save nickfox/7050032 to your computer and use it in GitHub Desktop.
[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