0

I have used a UIWebView in my app and want to download the file. I have referred to this SO question

I wanted to know if there is a way to know if the NSURLRequest is a normal link or is it a link to download a file.

Regards, Nirav

Community
  • 1
  • 1
Nirav
  • 315
  • 1
  • 4
  • 16

1 Answers1

1

NSURL has a method 'isFileURL'

[request.URL isFileURL]
markturnip
  • 405
  • 2
  • 7