为什么在控制台中出现ImageIO错误? [英] Why do i get ImageIO errors in console?

查看:216
本文介绍了为什么在控制台中出现ImageIO错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现错误ImageIO:_CGImagePluginInitGIF GIF文件格式(768 x 1024)?

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

我快疯了!当我的某些.gif图像需要在UIImageView中显示时,此错误在XCode控制台中显示。图像不显示(!),我在控制台中看到了。该错误仅显示少量图像,而不是全部!我试图删除图像,再次添加它们,进行清洁,重建,但是我仍然无法显示这些图像!一切正常,直到我安装了XCode 4.0.1,所有图像均正常工作并显示正常!有人说这是XCode中的错误,必须安装最新版本4.0.2。我做到了,问题仍然存在!我在这里搜索和搜索,但似乎这种错误并不常见...我真的不知道发生了什么。

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?

推荐答案

回答我自己的问题……长话短说;我联系了苹果技术支持人员。这是与.gif图像有关的错误。目前,解决方法是使用.png或其他图像类型。

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.

这篇关于为什么在控制台中出现ImageIO错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆