UIImageView *imageView = <#instantiate#> imageView.image = @"someImageFromImageAsset";
并且基于它渲染的设备,它设置了正确的图像.显然我需要为特定设备设置图像,但我不确定你是如何做到的.
Objective-C的
imageView.image = [UIImage imageNamed: @"someImageName"];
迅速
imageView.image = UIImage(named: "someImageName");