Reputation: 3105
Hopefully a quick one for someone?! I am TOTALLY at a loss. I have two images,
p1-slide01.png and p3-slide01.png
Both PNG images open in Preview and when I click on them in Xcode, I see them. They are there. They are in the right folder etc.
Yet, when I do myImage.image = [UIImage imageNamed:@"p1-slide01.png"]
it doesn't work. It does however work for p3-slide01.png. The code is no different. I have generated the PNG images via an export in PowerPoint. They look fine everywhere.
Does anyone know what I might be doing wrong?! The UIImageViews are declared and retained in the .h file.
[UPDATE] - I renamed the image to "testy.png" and it loaded. Yet when I changed it back to the original p1-slide01.png - it comes up blank. It's like there are cached images somewhere (I've used these file names in another app?!) - do I just need to change file names?!
Upvotes: 0
Views: 936
Reputation: 50707
Make sure you clean your build, there may be an additional p1-slide01.png
loitering around.
Upvotes: 2