imageWithContentsOfFile not loading @2x Assets
| Originator: | dafire | ||
| Number: | rdar://17572878 | Date Originated: | 07-Jul-2014 11:42 AM |
| Status: | Closed | Resolved: | 22-Jul-2014 11:42 AM |
| Product: | iOS SDK | Product Version: | ios8 beta 2 |
| Classification: | Reproducible: | always |
Summary:
When compiled with xcode 6 beta 2 [UIImage imageWithContentsOfFile:] is not loading @2x images.
Steps to Reproduce:
2 image files, image@2x.jpg and image.jpg and following code:
UIImage *img = [UIImage imageNamed:@"image.jpg"];
UIImage *img2 = [UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"image.jpg"]];
Expected Results:
img and img2 both loading the retina asset
Actual Results:
img2 is not the retina asset
Version:
iOS 8 beta 2
Notes:
this was tested on device and in simulator
Configuration:
iphone 5 model A1429
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!
This problem was fixed with iOS 8 beta 4