In my WebView app I have this code for network connection check:
Code:
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
UIAlertView *connectionAlert = [[UIAlertView alloc] initWithTitle:@"Connection Failed"
message:[NSString stringWithFormat:@"Make sure your device is connected to the internet and try again.",[error localizedDescription]]
delegate:self
cancelButtonTitle:@"Close"
otherButtonTitles: nil];
[connectionAlert show];
[connectionAlert release];
}
I have links in the html-page to MP3's. When I click those, the AlertView is displayed. How can I fix this?
Thanks for your help?