使用X code自动布局在iPhone上不同的图像大小 [英] Use Xcode Auto Layout for different image sizes on iPhone

查看:232
本文介绍了使用X code自动布局在iPhone上不同的图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用自动布局在iPhone的肖像,我不想完全一样大小的UIImageViews适用于iPhone 6+游戏人物作为iPhone 4S的。该4S字符需要更小,否则他们会期待太大了。使用自动布局如何更改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. The 4S characters need to be smaller or else they'll look too big. 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.

推荐答案

我相信,因为当你添加图片,他们会更小,添加3种尺寸的图像:@ 1倍,2倍@和@ 3倍。这些图像使图像通用于所有苹果设备。尝试一下在你的模拟器。

I am sure that they would be smaller because when you add images, you add 3 sizes of the image: @1x, @2x, and @3x. These images make the image universal for all Apple devices. Try them out in your simulator.

这篇关于使用X code自动布局在iPhone上不同的图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆