Image not displayed under 7.1 when using UIImage and Swift
| Originator: | jedi | ||
| Number: | rdar://18070266 | Date Originated: | 19-Aug-2014 05:19 PM |
| Status: | Closed | Resolved: | duplicate |
| Product: | Xcode | Product Version: | 6 Beta 5 |
| Classification: | Data Loss | Reproducible: | Yes |
Summary: I've added a UIImageView to display a UIImage from a file found in the Assets Folder. Under 8.0 beta 5 (via the simulator), the image displays fine. When I run the app under 7.1, I get the following error on the console: Unable to create unsliced image from csi bitmap data. Steps to Reproduce: 1. Create sample project with a single view controller using swift. 2. Set the Deployment Target for 7.1. 3. Add an image to the image asset library. 4. Add a UIImageView to that view in the storyboard. 5. In the class code somewhere, create a UIImage for the image added to the assets. 6. Add that UIImage to the UIImageView. 7. Run the app in Simulator for 8.0. 8. After confirmation that it works, run for Simulator for 7.1. Expected Results: Image should be displayed correctly for both 7.1 and 8. Actual Results: Image is displayed correctly in the image view for 8.0. Image is not displayed correctly for 7.1. Version: Xcode 6 Beta 5, iOS 7.1 (both the simulator and on device). Notes: Seems it was a problem in beta 3, but was potentially resolved according to this SO post: http://stackoverflow.com/questions/24643904/xcode-6-beta-3-unsupported-pixel-format-in-csi-or-unable-to-create-unsliced-i Configuration: Works in 8.0. Does not work in 7.1, in simulator or device. Attachments:
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!