Why do i get ImageIO errors in console?

拥有回忆 提交于 2019-12-25 04:23:23

问题


Why do i get error ImageIO: _CGImagePluginInitGIFmalformed GIF file (768 x 1024)?

I am going crazy! This error shows up in XCode console when some of my .gif images need to show up in UIImageView. Images do not display(!) and I get that in console. That error is showing only for few images, not all! I tried to remove the images, add them again, clean, rebuild, but I still cant display those images! Everything was OK until I installed XCode 4.0.1, all images were working and displaying fine! Some people said that this is a bug in XCode and that it is necessary to install latest version 4.0.2. I did that and the problem is still here! I googled and searched here but it seems that this kind of error is not common... I really don't know what's going on. Could you please help me with this?


回答1:


To answer my own question... Long story short; I contacted Apple Technical support for developers. It is a bug related with .gif images. For now, workaround is to use .png or some other image type.



来源:https://stackoverflow.com/questions/5765824/why-do-i-get-imageio-errors-in-console

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