title: Objective C: Downloading File With Progress Bar
body: <p>I am trying to put a progress bar that syncs during the download that is happening.
  My app now can download a file using with this codes...</p>
  
  <pre><code>    pdfData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://webaddress.com/pro/download/file.pdf"]];
  
      NSString *resourcePDFPath = [[NSString alloc] initWithString:[[[[NSBundle mainBundle]  resourcePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"Documents"]];
  
      pdfFilePath = [resourcePDFPath stringByAppendingPathComponent:@"myPDF.pdf"];
  
      [pdfData writeToFile:pdfFilePath atomically:YES];
  </code></pre>
  
  <p>During the process of this code the app stopped during download, is it normal?
  Now what I want is to put a progress bar during that stop time while downloading.</p>
  
  <p>I tried looking into the codes I found online but I'm a bit confused, I think I need a step-by-step-well-explained reference.</p>