Hi All,
Sorry to bother with this, but I have searched all over and I have tried everything I can think of (which admittedly may not be that great an endorsement) and I cannot find an answer.
Basically, I have a UIWebView and what I'm trying to do is detect if the link being clicked inside the active web page (in my webview) is an image. So, to that end I have implemented the following method:
Code:
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
//CAPTURE USER LINK-CLICK.
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
NSURL *URL = [request URL];
NSLog(@"url is: %s ", URL);
}
return YES;
}
WHat I get from the above code is: @fiA (base64?)
I've tried all manner of different encoding methods, but nothing gives me any different response than that.
All I need to get is the url so that I can do a substring search and see if it contains .jpg, .gif, .png, etc and handle it properly if it contains one of those.
Any help would be MUCH appreciated...