I want to inform user when HTTP error 404 etc is received. How can I detect that? I\'ve already tried to implement
- (void)webView:(UIWebView *)webView didFailL
I used below code for my solution
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
NSLog(@"error :%@",error);
NSString *strError = [NSString stringWithFormat:@"%@",error];
if ([strError rangeOfString:@"Code=-1005"].location == NSNotFound) {
NSLog(@"string does not contain Code=-1005");
} else
NSLog(@"string contains Code=-1005”);
}