I have a queue set up of four tracks. When the track changes, I want to change a UIImage, in regards to that specific track (If track 1 is playing I want to display an image titled 1.png, if track 2 is playing I want to display 2.png, etc).
I want to use a switch statement but I'm not sure how to use it when it comes to setting the expression.
switch(soundEmotions AVPlayerItem)
{
case yellowVoice:
UIImage * yellowImage = [UIImage imageNamed:@"yellow.png"];
[UIView transitionWithView:self.view
duration:1.0f
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
mainImage.image = yellowImage;
} completion:NULL];
break;
case orangeVoice:
UIImage * orangeImage = [UIImage imageNamed:@"orange.png"];
[UIView transitionWithView:self.view
duration:1.0f
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
mainImage.image = orangeImage;
} completion:NULL];
break;
case redVoice:
break;
case pinkVoice:
break;
default:
break;
}