为什么我在控制台中收到 ImageIO 错误?
为什么我收到错误 ImageIO: _CGImagePluginInitGIFmalformed GIF file (768 x 1024)?
我要疯了!当我的一些 .gif 图像需要显示在 UIImageView 中时,此错误会显示在 XCode 控制台中。图像不显示(!),我在控制台中得到了它。该错误仅针对少数图像显示,而不是全部!我尝试删除图像,再次添加它们,清理,重建,但我仍然无法显示这些图像!一切都很好,直到我安装了 XCode 4.0.1,所有图像都工作并显示良好!有人说这是XCode的一个bug,需要安装最新版本4.0.2。我这样做了,问题仍然存在!我用谷歌搜索并在这里搜索,但似乎这种错误并不常见......我真的不知道发生了什么事。你能帮我解决这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题......长话短说;我联系了 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.