UIImage couldn't load some png picture

I Use the following code to load png image:

UIImage *imageBack1 = [UIImage imageNamed:@"Bar1.png"];
UIImage *imageBack2 = [UIImage imageNamed:@"Bar2.png"];

imageBack1 work right when imageBack2's value is nil, Bar1.png and Bar2.png are located at the same place,but why Bar2.png couldn't be load?

Answers


In fact , the problem come from the png file,but not cocoa. Iphoto couldn't recognize it.


Need Your Help

Cannot deploy application on websphere

ejb-3.0 derby websphere-7

I am working with an application that uses the following technologies: Java, EJB 3, JPA, Websphere, and Oracle.

How to write listeners in ES6 in Polymer?

javascript polymer ecmascript-6 polymer-1.0

I basically want to write the following code in ES6 fashion.