我有一个UIPopoverController
包含UIWebViewController
一个按钮按下打开的。在打开通话时按下按钮dismissPopoverAnimated:animated:
我不断得到
*** -[_UIWebViewScrollView release]: message sent to deallocated instance 0x21cb01b0.
按钮按下代码的片段:
if ([self.popover isPopoverVisible]){
CCLOG(@"Calling dismissPopoverAnimated");
[self.popover dismissPopoverAnimated:YES];
self.popover = nil;
}
该类的dealloc
方法如下:
-(void) dealloc {
[self.webView stopLoading];
[self.webView.scrollView setDelegate:nil];
self.webView.delegate = nil;
self.webView = nil;
}