我在 xcode 9.2 中创建了一个新的简单 iOS 项目,并将 iOS 部署目标设置为 iOS 8.0,然后将 UIImageview 添加到 View 并将图像名称设置为 UIImageview,在 iPad 2 (iOS 8.1.3) 上启动并运行,请参阅下图中的结果,imageview 渲染不正确
最佳答案
检查这个答案:
https://forums.developer.apple.com/thread/93743
Issue is included in release notes for Xcode 9.2, hopeffully will be fixed soon https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW936
When using Xcode 9.2 to create apps that deploy to iOS 8 and later, images in the asset catalog may be corrupted when viewed on devices running iOS 8.3 and earlier. (35379713) Workaround: Build the app using Xcode 9.1, or use Xcode 9.2 and set the deployment target to iOS 8.4 or later.
关于ios - iPad 2 UIImageview 显示图像不正确(渲染不正确),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48682495/