开发者

UIImage couldn't load some png picture

开发者 https://www.devze.com 2022-12-26 00:22 出处:网络
I Use the following code to load png image: UIImage *imageBack1 = [UIImage imageNamed:@\"Bar1.png\"]; UI开发者_如何转开发Image *imageBack2 = [UIImage imageNamed:@\"Bar2.png\"];

I Use the following code to load png image:

UIImage *imageBack1 = [UIImage imageNamed:@"Bar1.png"];
UI开发者_如何转开发Image *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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消