title: iOS - UIImage imageNamed: returns null on device
body: <pre><code>[UIImage imageNamed:filename]
  </code></pre>
  
  <p>This method returns null only on the device.</p>
  
  <p>I know it's known problem and it's usually due to the fact that simulator is case insensitive.
  I have tried solutions proposed here: <a href="https://stackoverflow.com/questions/10998544/uiimage-imagenamed-returns-nil">UIImage imageNamed returns nil</a></p>
  
  <p>But nothing worked out for me.</p>
  
  <p>The case is simple: I have 4 files named:Bar@2x~ipad.png, Bar@2x~iphone.png, Bar~ipad.png, Bar~iphone.png.
  All of them are in project with target checkbox checked.</p>
  
  <pre><code>NSLog(@"%@",[UIImage imageNamed:@"Bar"]);
  </code></pre>
  
  <p>That line of code gives me null for device and I really have no idea what I'm doing wrong right now.</p>