I have a universal app with different default images:
Default.png
Default@2x.png
Default-Portrait@2x~ipad.png
and so on. How can I determine programmatically at runtime which file was used? I tried this:
UIImage *imgUsed = [UIImage imageNamed:@"Default"];
but this always returns Default.png
regardless of which simulator I am using (the correct image is displayed on startup in the simulator based on which screen size is being used).
Thanks.