+[UIImage imageNamed] could automatically load -568h files
| Originator: | tomas.znamenacek | ||
| Number: | rdar://12516489 | Date Originated: | 17-Oct-2012 10:35 AM |
| Status: | Duplicate | Resolved: | 23-Oct-2012 |
| Product: | iPhone SDK | Product Version: | |
| Classification: | Enhancement | Reproducible: |
Summary: The +[UIImage imageNamed] method now automatically loads @2x files when running on Retina devices. For example, when I request an image named “Image” on a Retina device and there’s a “Image@2x.png” file in the resource bundle, UIImage loads the high-resolution image. It would be nice to also support this automatic loading for -568h images when running on a 4-inch device. Steps to Reproduce: // We have an image named foo-568h@2x.png in the bundle UIImage *img = [UIImage imageNamed:@"foo"]; Expected Results: I get an image corresponding to the foo-568h@2x.png file. Actual Results: I get nil. Regression: N/A Notes: This is makes it easier for developers to support 4-inch devices without having to write out the code.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Original Bug Closed
The original bug #12290002 is now marked closed in Radar, but there’s no way for me to find out the details.