gpt4 book ai didi

ios - 计算所有尺寸的iphone的纵横比

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:06:06 24 4
gpt4 key购买 nike

我知道这种类型的问题已经被问过好几次了,但我是 iPhone 的新手,所以对所有答案都很困惑。因为我的 Logo 是 61*57,我想根据 iPhone 的尺寸进行更改。但是当我为所有屏幕指定它的宽高比时,它会给出自己的比例。但我很困惑这个比率是如何计算出来的。对于 5.5 英寸,他们建议 17:184 用于 4.7 61:667 4 英寸 61:568 和 3.5 英寸 61:480。

最佳答案

所以首先你给图标 X , Y 和纵横比 enter image description here

然后你给你的图标的高度等于父 View 的高度

enter image description here

然后你用你当前图标的高度除以你刚刚给的 superview 的高度

enter image description here

你在 Equal height to: SuperviewMultiplier:

中写下那个分开的答案

enter image description here

完成了

enter image description here

关于ios - 计算所有尺寸的iphone的纵横比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35455194/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com