开发者

Download Request - iPhone SDK

开发者 https://www.devze.com 2023-01-15 04:54 出处:网络
I am tr开发者_运维技巧ying 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 h

I am tr开发者_运维技巧ying 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


-[<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).

0

精彩评论

暂无评论...
验证码 换一张
取 消