开发者

How do you 'pop' a UIWebVIew?

I have a UIWebView which I load like this:

NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];

When I want to get rid of it, what do 开发者_如何学PythonI code?

Thanks?


[webView removeFromSuperview]

If you are completely finished with the webView, then release it afterwards

[webView release]


It seems your problem does not have anything to do with the UIWebView itself. Perhaps you just want to know how to empty the UIWebView. I tested this:

[webview loadHTMLString:nil baseURL:nil];

Cheers, Sascha

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜