[英]Use Xcode Auto Layout for different image sizes on iPhone
With Auto Layout for iPhones in Portrait, I don't want the exact same size UIImageViews for game characters on iPhone 6+ as in iPhone 4S. 使用纵向iPhone的自动版式,我不希望iPhone 6+上的游戏角色具有与iPhone 4S完全相同的UIImageViews尺寸。 The 4S characters need to be smaller or else they'll look too big.
4S字符必须较小,否则看起来太大。 Using Auto Layout how do I change image sizes between iPhones because they seem like they all change to be the same sizes regardless of constraints.
使用自动版式,如何更改iPhone之间的图像大小,因为无论约束如何,它们看起来都变成了相同的大小。
I am sure that they would be smaller because when you add images, you add 3 sizes of the image: @1x, @2x, and @3x. 我确信它们会更小,因为添加图像时,会添加3种尺寸的图像:@ 1x,@ 2x和@ 3x。 These images make the image universal for all Apple devices.
这些图像使该图像在所有Apple设备上通用。 Try them out in your simulator.
在您的模拟器中尝试一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.