UIWebView:图像未更新 [英] UIWebView: Images are not updating

查看:103
本文介绍了UIWebView:图像未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UIWebView加载HTML页面。从那个HTML我生成了PDF文件。我的PDF文件内容根据HTML数据更改而更改。当我在应用程序中更改用户的签名(图像)时,相应的PDF将不会更改为新签名。它显示了以前的签名。

I am using UIWebView to load HTML Page. From that HTML I have generated PDF file. My PDF file content changes as per the HTML data changes. when I change the Signature(Image) of the user in application respective PDF will not change to new signature. It shows the previous signature.

如何重新加载UIWebView?

How can I reload that UIWebView?

推荐答案

如果您使用具有更新内容的相同网址,请使用此功能。

If you are using same url with updated content use this.

UIWebView*  webV=[[UIWebView alloc]init];

NSString* htmlString= @"Loading...";

[webV loadHTMLString:htmlString baseURL:nil];

[webV loadRequest:[NSURLRequest requestWithURL:mainURL]];

这篇关于UIWebView:图像未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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