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
精彩评论