简体   繁体   English

在iPhone 6s vs 6中禁用尺寸类别和应用布局

[英]Disabling size classes & app layout in iPhone 6s vs 6

My app has size classes disabled. 我的应用程序禁用了尺寸类别。

I've been testing throughout the entire development on my iPhone 6 and making sure that all objects are where they are supposed to be and up to my standard. 我一直在iPhone 6的整个开发过程中进行测试,并确保所有对象都在预期的位置并符合我的标准。

However, I recently ran it on an iPhone 6s and it seems like things are all over the place. 但是,我最近在iPhone 6s上运行了它,似乎到处都是。

How do I build a responsive layout that molds itself to an iPhone 6s as well as an iPhone 6? 如何建立可适应iPhone 6s和iPhone 6的自适应布局?

I've been using auto layout. 我一直在使用自动布局。

If your app is targeted for iOS 9 use stack views in combination with auto layout. 如果您的应用程序针对iOS 9,请将堆栈视图与自动布局结合使用。 It will allow you to create responsive layout quite easy. 这将使您轻松创建响应式布局。 First you should check some tutorial about stack view in iOS if you are not familiar with it. 首先,如果您不熟悉iOS上的堆栈视图,则应查看一些教程。

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

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