[英]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.