Hi,
Part of my app is not functioning correctly on the device, although it worked fine in the simulator. This is the part of the code which is not being executed for some reason.
Code:
switch (dayNumber) {
case 1:
switch (lunchNumber) {
case 1:
//xlunch
customLunchLabel.text = @"You have first lunch.";
break;
case 2:
//zlunch
customLunchLabel.text = @"You have last lunch.";
break;
case 3:
//ylunch
customLunchLabel.text = @"You have splitter.";
break;
default:
customLunchLabel.text = @"Set your lunch block on the 'Settings' page!";
break;
}
UIImage *aDayImage = [UIImage imageNamed:@"idelbarton4.jpg"];
[mainImageView setImage:aDayImage];
break;
case 2:...
...
...
...
In my simulator it works fine, the label text is set and so is the imageview, but on the actually device the imageview is not set. The label text does change correctly but the imageview changes from what is was before this code was reached, and turns black. Why isn't this working?