I’m not aware of anything you can embed in the image data itself to tell the phone that it’s a @2x image, but something like this should work:
UIImage * img = ...;
img = [UIImage imageWithCGImage:img.CGImage scale:2 orientation:img.imageOrientation];