开发者

iphone .png image not showing up in device

开发者 https://www.devze.com 2023-01-14 13:55 出处:网络
ok, i set some .png files image as uimage in my table cell. they show up nicely when i r开发者_StackOverflow社区un them using iphone simulator. when i run them in my device, they up not show up. what

ok, i set some .png files image as uimage in my table cell. they show up nicely when i r开发者_StackOverflow社区un them using iphone simulator. when i run them in my device, they up not show up. what seems to be the problem?

i only "error" i got is unable to debug when i install my app to my device, which shouldn't be a problem as i never set for debug.

does anyone knows why?

thks in advance!

code:

- (void)setIcon:(UIImage *)newIcon
{
    [super setIcon:newIcon];
    iconView.image = newIcon;
}

where iconview.image is from nib. newIcon is loaded in from plist, 1.png etc.


Is the uppercase/lowercase letter usage of your file names exactly consistent between the source code or plist strings and the actual file names in your app's bundle? Case awareness is a difference between the Mac OS and iOS file systems.

0

精彩评论

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

关注公众号