Memory leak UIWebView when loading from file instead of URL?
问题 I have a UIViewController that contains a UIWebView (OS 3.0). If I load it with file data, as soon as the 'Back Button' is hit and the view is dismissed, I'm seeing EXEC_BAD_ACCESS error with WebCore object releasing 'SharedBuffer' - (void)viewDidLoad { NSString *htmlFile = [[NSBundle mainBundle] pathForResource:fileName ofType:@"html"]; NSData *fileHtmlData = [NSData dataWithContentsOfFile:htmlFile]; [webView loadData:fileHtmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL: