2014-09-19 2 views

Répondre

1

Essayez ceci pour bloquer le chargement .mp3 de

- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType { 
    if (navigationType == UIWebViewNavigationTypeLinkClicked) 
    { 
     if([[NSString stringWithFormat:@"%@",[request URL]] hasSuffix:@".mp3"]{ 
    return NO; 
    } 
    return YES; 
    } 
+0

Parfait! Son travail. Merci :) – Arunkumar