views:

94

answers:

1

Hi All..

In my iPhone application i want to allow a user to download a file.(video file) From a UIWebview i have linked download button to the video file.

Didnt worked !

Any ideas ?

Please help !

A: 

AFAIK there is not way of downloading a file from WebKit component the same way it's done on the Desktop. If you want to do something like this you should interface with webView by using something like:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

so that you can download the file properly.

Elraij