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

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

问题描述

为什么我会收到错误 ImageIO: _CGImagePluginInitGIFmalformed GIF file (768 x 1024)?

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

我快疯了!当我的一些 .gif 图像需要在 UIImageView 中显示时,此错误会显示在 XCode 控制台中.图像不显示(!),我在控制台中得到了它.该错误仅显示少数图像,而不是全部!我试图删除图像,再次添加它们,清理,重建,但我仍然无法显示这些图像!一切正常,直到我安装了 XCode 4.0.1,所有图像都可以正常工作并显示正常!有人说这是XCode的一个bug,需要安装最新的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?

推荐答案

回答我自己的问题... 长话短说;我联系了 Apple 的开发人员技术支持.这是一个与 .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天全站免登陆