title: How to download files from UIWebView and open again
body: <p>How can I create a "download manager" which would detect when a link you tap (in a UIWebView) has the file ending <strong>".pdf", ".png", ".jpeg", ".tiff", ".gif", ".doc", ".docx", ".ppt", ".pptx", ".xls" and ".xlsx"</strong> and then would open a UIActionSheet asking you if you would like to download or open. If you select download, it will then download that file to the device. </p>
  
  <p>Another section of the app would have a list of downloaded files in a UITableView and when you tap on them, they will show in a UIWebView, but of course offline because they would load locally as they would have been downloaded.</p>
  
  <p>See <a href="http://itunes.apple.com/gb/app/downloads-lite-downloader/id349275540?mt=8" rel="nofollow noreferrer">http://itunes.apple.com/gb/app/downloads-lite-downloader/id349275540?mt=8</a> for a better understanding of what I am trying to do.</p>
  
  <p>What is the best way of doing this?</p>