开发者

cell.imageView is working on Simulator but not on Device

开发者 https://www.devze.com 2023-01-17 04:37 出处:网络
Tab开发者_如何学编程le view cell imageView is working on the simulator but not on the device..

Tab开发者_如何学编程le view cell imageView is working on the simulator but not on the device.. Some things I have checked. I have not changed anything in the code. Image is added to the project and in same folder. I have one more cell image which is working fine.

Thank you in advance.


Iphone device is case sensitive ... and simulator is not..


Make sure you check the case of the name used in your +[UIImage imageNamed:] calls. These are case-sensitive on the device, but not always on the sim. That's the most common cause of missing images. If that isn't the source, put a breakpoint where you're assigning the image, and check all teh variables.

0

精彩评论

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