OGeek|极客世界-中国程序员成长平台

标题: ios - 在 Sketch 3 中为所有 iPhone 导出 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 09:50
标题: ios - 在 Sketch 3 中为所有 iPhone 导出

我似乎对 Sketch 3 工作流程和在 Sketch 3 中为所有 iPhone 导出画板感到困惑。

我几天来一直在寻找可靠的答案,但找不到真正有效的答案。据此link :

"if you were designing at 1x with the 6Plus (414x736) art board, exporting your assets at 1x would be for 3G/3GS devices, 2x would be for 4/4S/5/5S/6 devices, and finally 3x would be for the 6Plus."

但是,在我测试之后,我得到了不同的结果: 以 1x = 414x736 2x = 828x1472 和 3x = 1242x2208 导出 iPhone 6Plus (414x736)。 2x 不应该是 750x1334 吗?

提前致谢!



Best Answer-推荐答案


Zeplin 中的密度选择是一种告诉应用程序,Sketch 画板在@1x 或@2x 或@3x 中的方式。因此,Zeplin 将基于此计算 Assets 大小。您不必处理不同的尺寸(@1x、@2x、@3x 和 PDF)。

如果您的 Sketch 画板是 1242 x 2208 像素(iPhone 6Plus、6S Plus、7Plus),那么您必须在 Zeplin 中选择密度为 @3x。

所以请确保在 Zeplin 中选择正确的密度。

Zeplin – Choosing right screen size while importing from Sketch?

关于ios - 在 Sketch 3 中为所有 iPhone 导出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33848956/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4