cell.imageView is working on Simulator but not on Device

穿精又带淫゛_ 提交于 2019-12-12 13:32:56

问题


Table 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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/3743844/cell-imageview-is-working-on-simulator-but-not-on-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!