我有imageview n视图控制器,其大小根据iPhone的大小而有所不同。我想设置高度恒定和宽度将会有所不同(framewidth)。我们可以在objectiveview中使用Xcasset在imageview上设置图像吗?
So I decided to keep differnt image in Xcassets of size
a) (320, 110) i.e framewidth of Iphone 4s , 5s or 5c
b) (375, 110) i.e framewidth of Iphone 6 or 7
c) (414, 110) i.e framewidth of Iphone 6s or 7s
So, my question is, How to set image using XCAssets in objective c?
yaa。这是我正在寻找的。非常感谢。 – Sommm