title: DiskImageCache: Could not resolve the absolute path of the old directory. failed to find PDF header: `%PDF' not found
body: <p>In one of my views, I simply want to show a pdf file in a UIWebView. </p>
  
  <p>My code of the header file:</p>
  
  <pre><code>    #import &lt;UIKit/UIKit.h&gt;
  
  @interface FCOMViewController : UIViewController
  
  {IBOutlet UIWebView *fcomWebView;}
  
  //flag to denote if this is first time the app is run
  
  @property (nonatomic) BOOL firstRun;
  
  @end
  </code></pre>
  
  <p>And here the method in the implementation file:</p>
  
  <pre><code>- (void)viewDidLoad {
  
      //Show the procedures PDF
  
  NSString *path = [[NSBundle mainBundle] pathForResource:@"b777normalprocedures" ofType:@"pdf"];
  NSURL *url = [NSURL fileURLWithPath:path];
  NSURLRequest *request = [NSURLRequest requestWithURL:url];
  [fcomWebView loadRequest:request];
  [fcomWebView setScalesPageToFit:YES];
  </code></pre>
  
  <p>The app starts fine, does not crash or anything. The referencing outlets are set, but it doesn't show the PDF. Console says:</p>
  
  <blockquote>
    <p>DiskImageCache: Could not resolve the absolute path of the old
    directory. failed to find PDF header: `%PDF' not found.</p>
  </blockquote>
  
  <p>The pdf is in the project directory, I have double checked that it is written correctly.</p>
  
  <p>What can I do here? Any help would be appreciated.</p>