简体   繁体   English

自适应故事板(将大量按钮正确安装到所有设备上)

[英]Adaptive storyboard (fit lots of buttons onto all devices correctly)

I have been trying to figure out how to get my app to look good on all apple devices.我一直在想办法让我的应用程序在所有苹果设备上看起来都不错。 I will say I made this app very quickly and was not thinking about how it would look on different devices when I was making it.我会说我很快就制作了这个应用程序,并且在制作它时并没有考虑它在不同设备上的外观。 I was just having a good time making it.我只是玩得很​​开心。 Until now, since it only looks good on the iPhone 6s, which is what I was testing it on the whole time.直到现在,因为它只在 iPhone 6s 上看起来不错,我一直在测试它。 This is the basic layout of my app:这是我的应用程序的基本布局: 在此处输入图片说明

Is there any way to format this without starting completely over or is it just too much of a mess to fix?有没有什么方法可以在不完全重新开始的情况下格式化它,或者它是否太混乱而无法修复?

Thanks, Austin谢谢,奥斯汀

Use Autolayout.使用自动布局。 That is what it's for.这就是它的用途。 You don't have to start over;你不必重新开始; you just need to add proper constraints to all your elements so that they do the right sort of thing when the app launches on a larger or smaller screen.您只需要为所有元素添加适当的约束,以便它们在应用程序在更大或更小的屏幕上启动时做正确的事情。

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

相关问题 如何使用情节提要自动布局为所有iPhone设备(例如4,5,6和6+)设计自动适配 - how to design auto fit for all iPhone devices like 4,5,6 and 6+ using storyboard auto layout 如何在自动布局中设计 3x3 按钮支持所有使用 Storyboard 的 iPhone 设备 - How to design 3x3 buttons in auto layout support all iPhone devices using Storyboard 为所有 iPhone 设备制作自适应布局 - making adaptive layout for all iPhone devices 如何在Storyboard中支持所有设备方向? - How to support all devices orientations within Storyboard? 在所有设备上对齐导航按钮 - Align navigation buttons on all devices 如何使用LaunchScreen.storyboard为所有设备启用本机分辨率 - How to enable native resolution for all devices with LaunchScreen.storyboard 为什么这些按钮在大屏幕设备中无法正确显示? (迅速) - Why are these buttons not displaying correctly in larger screen devices? (Swift) 如何在“故事板”文件中找到所有“自定义”按钮 - How to find all the "custom" buttons in your "storyboard" files 如何在表格视图单元格中放置集合视图单元格(适用于所有屏幕尺寸?) - how to fit collection view cell in table view cell ( adaptive on all screen sizes?) 自动调整背景图像以适应所有设备和方向 Swift - Auto Resize Background Image To Fit All Devices And Orientations Swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM