如何优化4寸兼容3.5寸的屏幕尺寸 [英] How to optimize screen size designed for 4 inch compatible with 3.5 inch

查看:43
本文介绍了如何优化4寸兼容3.5寸的屏幕尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用故事板制作了一个 4 英寸的应用程序.但是我发现我也必须支持 3.5 英寸屏幕.所以我转到故事板并单击将显示尺寸从 4 英寸切换到 3.5 的按钮,因为在 3.5 英寸时我的应用程序在底部被截断.但是我在 3.5 英寸上完成了设计,然后又回到了 4 英寸.问题是,即使是 4 英寸,设计也适用于 3.5 英寸.我怎样才能有 3.5 英寸和 4 英寸的布局?我没有使用自动布局.

I have made a 4inch app using story board . However I found out that I have to support 3.5 inch screens as well. So I went to the storyboard and clicked on the button that switches the display size from 4inch to 3.5 since in 3.5 inch my app is cutoff at the bottom. However I finishes designing on 3.5 inch and went back to 4inch. The problem is that even in 4 inch the design is for 3.5 inch. How can I have a layout for 3.5inch and 4 inch? I am not using auto layout.

推荐答案

您有两个主要选择:

使用自动布局根据屏幕大小自动调整/移动视图.

Use autolayout to auto rezie/move the views depending on the size of the screen.

使用 2 个不同的故事板,并根据屏幕大小加载其中一个.

Use 2 different storyboards and load one or the other depending on the size of the screen.

这篇关于如何优化4寸兼容3.5寸的屏幕尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆