简体   繁体   English

切换尺寸等级Xcode

[英]Switching Size Classes Xcode

I just built the UI of my iOS 8 App using two Size Classes (Any/Any,Regular/Any). 我刚刚使用两个大小类(任意/任意,常规/任意)构建了iOS 8 App的UI。 Now I have realized that I need the Any/Any configuration for every device and orientation except iPhones in landscape (here I would like to use the configuration of Regular/Any). 现在,我已经意识到,除了横向使用iPhone以外,我需要为每个设备和方向配置“任意/任意”配置(这里我想使用“常规/任意”的配置)。

How can I copy the configuration from Regular/Any to Any/Compact and delete this configuration in the Size Class Regular/Any? 如何将配置从“常规” /“任意”复制到“任意” /“紧凑”,并在“大小/常规” /“任意”大小类中删除此配置?

There may be a better way, but how I've done it is: 也许有更好的方法,但是我的方法是:

  • Go into Any/Compact 进入任意/紧凑
  • De-install/deactivate all constraints for the Any/Compact size class. 取消安装/停用“任意/紧凑”尺寸类的所有约束。

在此处输入图片说明

在此处输入图片说明

  • Go into Regular/Any 进入常规/任何
  • Change all of its constraints to be installed on A/C and deinstall/deactivate from R/A. 更改其所有约束以安装在A / C上,然后从R / A卸载/停用。

It's manual labor, but it gets the job done. 这是体力劳动,但可以完成工作。

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

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