简体   繁体   English

iOS视图向下或向上缩放

[英]iOS Views down or upscale

Since there are so many screen sizes now, is it better to make views in the vieweditor of xcode based on a bigger size and scale down by constraints? 既然现在有这么多的屏幕尺寸,是否最好在更大的尺寸基础上通过约束缩小视图,从而在xcode的查看器中创建视图? or is it better to make views on a smaller base and scale up by constraints? 还是在较小的基础上创建视图并通过约束来扩大规模更好?

It is totally up to personal preference and what works best for you. 这完全取决于个人喜好,最适合您的是什么。 In any case I like to start small and work my way up. 无论如何,我都希望从小处着手,然后逐步提高自己的水平。 Running out of space is a bigger problem than having too much space. 空间不足是比拥有太多空间更大的问题。 But be sure to make use of the extra space to better the user experience and not just upscale everything. 但是请确保利用额外的空间来改善用户体验,而不仅仅是升级所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM