2016-04-01 8 views

答えて

1
viewDidDissapear(animated: Bool) { 
    super.viewDidDissapear(animated) 

    webView.stopLoading() 
} 

編集:コメントのとおり、これはOP

viewDidDissapear(animated: Bool) { 
     super.viewDidDissapear(animated) 

     webView.loadHTMLString("", baseURL: nil); 
    } 
+0

いいえ動作していません –

+0

viewDidDissapearでstopLoading()の代わりにリクエストをロードしようとしました –

+0

soundWebview.loadHTMLString( ""、baseURL:nil); –

0

のために働いている、これを試してみてください:

- (void)applicationDidEnterBackground:(UIApplication *)application { 
    NSError *activationError = nil; 
    BOOL success = [[AVAudioSession sharedInstance] setActive: NO error: &activationError]; 
    if (!success) { /* handle the error in activationError */ } 
} 

があなたのappDelegateクラスのフレームワークをインポートすることを忘れないでください。

+0

あなたのappDelegateクラスにフレームワークをインポートすることを忘れないでください –

関連する問題