views:

42

answers:

1

Hello everyone,

I am trying to create an app where the user clicks on a download link through a UIWebView and it will present a pop-up saying "do you want to download this file". I just don't know how to get the download request when the user taps on a download link. If anyone knows how to do this please leave a reply.

thanks,

Kevin

+2  A: 

-[<UIWebViewDelegate> webView:shouldStartLoadWithRequest:navigationType:]

The request parameter will have all the info about the URL that the request is for, and the navigationType parameter tells you how this request was initiated (a link was tapped, a form was submitted, something else, etc).

Dave DeLong