title: How to download PDF and store it locally on iPhone?
body: <p>I am able to successfully view a PDF from a website. I want to be able to download that PDF to the device, then access that file locally.</p>
  
  <p>When the app is opened, it will check the online PDF's date. If it is newer than the locally-stored PDF, the app will download the new one, otherwise it opens the locally-stored PDF.</p>
  
  <p>The code I am currently using:</p>
  
  <pre><code>PDFAddress = [NSURL URLWithString:@"http://www.msy.com.au/Parts/PARTS.pdf"];
  request = [NSURLRequest requestWithURL:PDFAddress];
  [webView loadRequest:request];
  webView.scalesPageToFit = YES;
  </code></pre>
  
  <p>How am I able to achieve this?</p>