I have the following code in my app. This is connected to a slider for choosing a level to play. An image of the selected level flashes on the screen. It all works perfectly when trying it in the simulator, but when I try it on my Ipod all levels work except level one. I thought maybe I mistyped @"levelOneImage.png"
But I didn't because it DOES work in the simulator. Does anyone know what could be causing this not to work on the Ipod?
what stumps me is that all the animations are identical except for the images of course.
But I didn't because it DOES work in the simulator. Does anyone know what could be causing this not to work on the Ipod?
Code:
if (level == 1)
{
[levelView setImage: [UIImage imageNamed: @"levelOneImage.png"]];
[UIView beginAnimations: @"levelOneAnimation" context: nil];
[UIView setAnimationDuration: 1.0];
[levelView setAlpha: 1.0];
[levelView setAlpha: 0.0];
[UIView commitAnimations];
}
else if (level == 2)
{
[levelView setImage: [UIImage imageNamed: @"levelTwoImage.png"]];
[UIView beginAnimations: @"levelTwoAnimation" context: nil];
[UIView setAnimationDuration: 1.0];
[levelView setAlpha: 1.0];
[levelView setAlpha: 0.0];
[UIView commitAnimations];
}
what stumps me is that all the animations are identical except for the images of course.