【发布时间】:2012-04-02 10:12:53
【问题描述】:
我在 UINavigationController 中推送了一个 UIWebView。这个 webview 将播放声音。
在播放声音的过程中,我接到一个电话,所以我从UINavigationController 弹出UIWebView 并且我也这样做了
myWebView.delegate = nil ;
[myWebView release];
myWebView = nil ;
我也是这样做的
[[NSURLCache sharedURLCache] removeAllCachedResponses];
[[NSURLCache sharedURLCache] removeCachedResponseForRequest:tempAdPlayer.request];
[myWebView loadRequest:nil];
问题是当我从通话中返回时,我发现声音仍在运行。 有人有解决办法吗?
顺便说一句,我在里面放了一些代码
- (void) webViewDidFinishLoad:(UIWebView *)webView1
释放webview后这个功能还在运行
【问题讨论】:
-
查看此链接。 stackoverflow.com/questions/789984/…希望对您有所帮助。谢谢!!
标签: iphone ios xcode uiwebview