[英]Layout on all devices, what are the steps to follow?
I am facing an issue of how to proceed with my designer and then on my app ( iOS app using Size class ) to make the layout as required. 我面临着一个问题,该问题是如何继续与我的设计师联系,然后在我的应用程序(使用Size类的iOS应用程序)上按要求进行布局。
Here his how we proceed: 在这里他如何进行:
1 / The designer of my company is preparing the UX/UI on illustrator, he is preparing them on 320 × 568 ( is that the way ? ) 1 /我公司的设计师正在用illustrator来准备UX / UI,他正在以320×568来准备它们(是吗?)
2 / Export the images as .pdf File @1x based on his UX 2 /根据他的UX将图像导出为.pdf文件@ 1x
3 / I am using Size Class @ storyboard 3 /我正在使用Size Class @ Storyboard
So : 因此:
(a) I have an image ( a circle ) which needs to be in the middle of the screen. (a)我有一个图像(一个圆圈),它需要在屏幕中间。
(b) The designer's UX ( based on iPhone 5 ) has an image 200*200px, I set the constraint : center horizontally & vertically. (b)设计师的UX(基于iPhone 5)具有200 * 200px的图像,我设置了约束:水平和垂直居中。 looks good for iPhone 5, 4s
看起来适合iPhone 5、4s
(c) Then on the iPhone 6, 6Plus it looks too small in the middle of the screen, so I decide to set different constraint to have a ratio according to the Width, still correct ? (c)然后在iPhone 6、6Plus上,它在屏幕中间显得太小,因此我决定根据Width来设置不同的约束以具有比率,对吗?
Here is what goes wrong : 这是哪里出了问题:
(d) the based image @1x is 200*200px and with the ratio my UIImageView becomes ~260*260px and the image is not well rendered. (d)基础图像@ 1x为200 * 200px,并且我的UIImageView的比率变为〜260 * 260px,并且图像呈现效果不佳。
How to proceed ? 如何进行 ?
1 / Should my designer export me an image.pdf @1x for different sizes, 200px and 260px, and I'll change the image I am using in the code to fit different devices ? 1 /我的设计师是否应该为我导出一张image.pdf @ 1x以用于200px和260px的不同大小,并且我将更改代码中使用的图像以适合不同的设备?
2 / Should I keep one image for all size and play with only with the constraint ? 2 /我应该为所有尺寸保留一张图像并只在约束条件下播放吗?
note : I usually use the Slicing when it is about shape that I can Slice. 注意:我通常会在涉及形状时使用切片。
Your designer should be designing your resolution for the maximum screen size and exporting graphics as PDF's. 您的设计师应该为最大屏幕尺寸设计分辨率,并将图形导出为PDF。 You should then be importing your graphics as PDF's.
然后,您应该将图形导入为PDF格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.