Simple question that I’m asking just as much for myself as for anyone who might stumble upon this at a later date: when saving a UIImage to the documents directory, must I save two versions, one @2x and one for non-retina displays? If so, is it correct to assume that the system would apply the same commands as it does with bundled images and know to use the correct file for each device?
Thanks!
I think the
imageNamed:class method from theUIImageclass does this ‘trick’ for you.But since you won’t be using the method, but something like
imageFromContentsOfFile:and you’re opening a file DIRECTLY and not through a helper method, you should do the @2x trick yourself (extending the
UIImageclass and create something similar would do the trick)