title: UIImageView's image disappears when changing the image
body: <p>When changing the image on an UIImageView in code, the image disappears. This only happens on an iPod Touch device, not on the iPhone emulator.</p>
  
  <p>In my bundle I have an image named <code>SomeImage.PNG</code></p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"SomeImage" ofType:@"png"];
  [self.background setImage:[[UIImage alloc] initWithContentsOfFile:path]];
  </code></pre>
  
  <p>I must reiterate, this works fine on the iPhone simulator but not on an iPod Touch device.</p>
  
  <p>Notice that the image file has an upper-case file extension, but in my code it is declared with lower case. This is the problem. So to fix the problem, change the code to this:</p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"SomeImage" ofType:@"PNG"];
  [self.background setImage:[[UIImage alloc] initWithContentsOfFile:path]];
  </code></pre>
  
  <p>I am asking if there is a 'better' way to do what I am doing, so I don't come across such issues in the future.</p>