简体   繁体   English

调整UI大小以适合iPhone 6/6 +,而无需使用自动布局

[英]Resize UI to fit iphone 6/6+ without using auto-layout

I am building an ios app and I have been developing it on iphone 5 size class. 我正在构建一个ios应用程序,并且已经在iphone 5尺寸类上进行了开发。 I have done it this way because I have not yet learned how to use auto-layout. 我这样做是因为我还没有学会如何使用自动布局。 I was wondering if there was a way(other than auto-layout) that I can use, on this app so that the view fits perfectly in iphone 5/5c/5s and 6/6+ 我想知道是否可以在此应用程序上使用一种方法(自动布局除外),以使视图完全适合iPhone 5 / 5c / 5s和6/6 +

Without auto-layout the available solutions will be pretty rough. 没有自动布局,可用的解决方案将非常困难。 Because your lengths are all hard values-- you will have to manually manipulate them to achieve the size you want in an iPhone 6. It would definitely still be slightly more time consuming to apply auto-layout constraints onto all of your views-- but you would be safe from having to do this again in the future. 因为长度都是硬值,所以您必须手动操作它们才能达到iPhone 6所需的大小。将自动布局约束应用于所有视图绝对肯定会花费更多时间-但您将来不必再次执行此操作将很安全。 Hopefully you don't have too many views :) 希望你没有太多的意见:)

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

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