UIImage imageNamed: iamgename.png cannot display images and solutions,
[UIImage imageNamed: iamgename.png]SuffixThe image management method should be a long time ago. The Images. xcassets is used preferentially to store image resources, and no suffix is needed.
BUG:If one of the images in the image list is not displayed, goUIImage imageNamed:This location. This is a for loop. Why does it only show that it is not displayed? After checking it many times, there is no problem with the image name, So google:"This is because when you add images to a project, you select a folder reference instead of a virtual group.The two options are indeed different. The most intuitive one is that the former is displayed in blue, and the latter is displayed in yellow. But this is the needle.For foldersBut I am a file.
Solution:In either caseDelete the image and add Create groupsIt's good.
Generally, this is an xcode bug, or the file reference method is incorrect.
Finally, we found that the project file has a row more than the resource name path of the image:
<