UIWebView加载错误
每当我在 UIWebView 中加载页面时,我都会在控制台中收到此错误
ImageIO: <ERROR> _CGImagePluginInitGIFmalformed GIF file (1005 x 767)
,该错误已记录多次,但在页面按预期加载时似乎没有任何影响。
这是我用来加载页面的代码:
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[webView setDelegate:self];
知道这个错误意味着什么吗?
Whenever I load a page in a UIWebView i get this error in the console
ImageIO: <ERROR> _CGImagePluginInitGIFmalformed GIF file (1005 x 767)
It's logged several times, but doesn't seem to effect anything as the page loads as expected.
Here's the code that I'm using to load the page:
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[webView setDelegate:self];
Any ideas what this error means?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这不是要回答的,因为它来自CGImage的最深处。我自己在模拟器中多次注意到这个错误。正如您所注意到的,我可以确认它没有任何作用。一切看起来都如预期。
I think it's not to answer, as it comes from the deepest parts of CGImage. I have noticed this error myself several times in the simulator. As you have noticed, I can confirm that it doesn't do anything. Everything looks as expected.
您必须检查您加载的 HTML 文件。发布它!代码片段没有错误..
You must check HTML file that you load.Post It! The snippet of code doesn't have error..