Xcode报错解决:Could not load the image referenced from a nib in the bundle with identifier

换了xcode8之后,突然原来的图片加载不出来了,直接放一个UIImageView到storyboard后还会报这个错:Could not load the "xxx.png" image referenced from a nib in the bundle with identifier "xxx"

测试后发现,xcode8加载Png图片的时候,要求Png图片是PNG-24格式,最简单的方法就是用mac os自带的图片浏览器打开图片,文件——导出——选择PNG,替换原来的图片即可,再将新图片导入到工程中,发现图片可以加载了。

你可能感兴趣的:(Xcode报错解决:Could not load the image referenced from a nib in the bundle with identifier)