Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iphone X 的图片名称没做吧 #7

Open
maltsugar opened this issue Jun 27, 2018 · 0 comments
Open

iphone X 的图片名称没做吧 #7

maltsugar opened this issue Jun 27, 2018 · 0 comments

Comments

@maltsugar
Copy link

建议可以根据屏幕宽高比来,不用每一种设备都搞一套。
可以加个属性: 是否AspectFill
如果是,则一套就够,imgView 的 contentMode全部采用AspectFill,不同设备,会有适当裁剪,告诉设计作图时,边缘留足够空就行。
如果否,则根据屏幕宽高比来就行,目前对iPhone来说3套就够了,iPhone 5 6 6p,都是16:9,缩放不变形。iPad的项目需要单独处理,应该都是3:4。

320:480 2:3
640:1136 9:16
750:1334 9:16
1242:2208 9:16
1125:2436 9:19.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant