Can't use Retina assets with NSAttributedString initialised from RTFD
| Originator: | adam | ||
| Number: | rdar://17214431 | Date Originated: | 07-Jun-2014 09:54 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS 8.0 (12A4265u), iOS 7.1 (11D167) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When displaying the contents of an NSAttributedString which was initialised from an RTFD document, it seems to be impossible for assets suffixed with the @2x qualifier to be used if the device has a Retina display. Steps to Reproduce: 1. Open TextEdit and drag and drop an image. Save as RTFD. 2. Open the package contents in Finder and drag and drop the Retina asset. 3. In an app, initialise an NSAttributedString from the RTFD, and assign it to a UITextView. Expected Results: If the device has a Retina display, image@2x.png is used. Actual Results: image.png is used. Version: iOS 8.0 (12A4265u), iOS 7.1 (11D167) Notes: Although TextEdit adds \width and \height to the RTF, these seem to be ignored by both iOS and OS X. Configuration: N/A Attachments: 'iOS Simulator Screen Shot 7 Jun 2014 9.26.22 pm.png' and 'NSAttributedString RTFD Retina bug.zip' were successfully uploaded.
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!