Search code examples
iosios6uiimageviewuiimageios7

PNG Image of my UIImageView doesn't not appear, but another PNG image appears


Yes it is very strange.

It as nothing special. From Interface Builder, i select it as Image, then the image appears in nib in xcode. But when i run it on my device, the image does not appear. If i select "yellow" as background of my UIImageView, the yellow backround appears instead of the image.

And if i select another picture as "image" of the UIImageView, it works. All are PNG format.

Everytime i run the app on the device, i do a "clean" before i build.

Here is the picture which doesn't work.

enter image description here

Any idea ?

So wierd ...


Solution

  • OK i found the solution.

    Right click on the image in Xcode, go to File Inspector, i had to check the checkbox under "Target Membership"