title: How to get [UIImage imageWithContentsOfFile:] and High Res Images working
body: <p>As many people are complaining it seems that in the Apple SDK for the Retina Display there's a bug and imageWithContentsOfFile actually does not automatically load the 2x images.</p>
  
  <p>I've stumbled into a nice post how to make a function which detects UIScreen scale factor and properly loads low or high res images ( <a href="http://atastypixel.com/blog/uiimage-resolution-independence-and-the-iphone-4s-retina-display/" rel="noreferrer">http://atastypixel.com/blog/uiimage-resolution-independence-and-the-iphone-4s-retina-display/</a> ), but the solution loads a 2x image and still has the scale factor of the image set to 1.0 and this results to a 2x images scaled 2 times (so, 4 times bigger than what it has to look like)</p>
  
  <p>imageNamed seems to accurately load low and high res images, but is no option for me. </p>
  
  <p>Does anybody have a solution for loading low/high res images not using the automatic loading of imageNamed or imageWithContentsOfFile ? (Or eventually solution how to make imageWithContentsOfFile work correct)</p>