如何在UIWebView上插入UIImage [英] How do i insert UIImage on UIWebView
本文介绍了如何在UIWebView上插入UIImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在UIImageView中显示Animated-GIF图像.因为这样只显示了第一帧,所以我想尝试一种不同的方法.
I'm trying to display an Animated-GIF image in a UIImageView. Because this way only the first frame is shown i wanted to try a different approach.
UIWebView.
UIWebView.
我如何获取内存(NSData)中的Animated-GIF,以显示在具有所有框架的UIWebView上??
推荐答案
感谢Thomas的回应,我不知道它是否有效,因为我现在自己做了..
Thanks Thomas for you response, i don't know if it works because i managed to do it myself now..
现在解码GIF的时间超过一周了,仍然没有成功,所以我从UIImageView转到UIWebView,下面的代码使它工作了..
Been decoding the GIFs for more then a week now and still with no succes so i went from UIImageView to UIWebView and the following code made it work..
[self.webView loadData:gifData MIMEType:@"image/gif" textEncodingName:nil baseURL:nil];
这篇关于如何在UIWebView上插入UIImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文