iOS 10,XCode 8中的AutoLayout约束问题 [英] AutoLayout constraint issues in iOS 10, XCode 8

查看:150
本文介绍了iOS 10,XCode 8中的AutoLayout约束问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Xcode 7.3开发了iOS应用程序. 在使用Xcode 7.3查看具有iOS 10的设备上的AutoLayout约束时,它会正确显示它,但是在使用Xcode 8然后在设备上进行查看时,它不会正确显示.

As I have developed the iOS application using Xcode 7.3. When reviewing the AutoLayout constraint on the device which having iOS 10 using Xcode 7.3 it properly display it but when using the Xcode 8 and then reviewing on the device then it does not show properly.

所以我的问题是,是否要使用Xcode 7.3AppStore上部署应用程序,所以AutoLayout约束有可能无法在iOS 10中正确显示.

So my question if I am deploy the application on the AppStore using Xcode 7.3, so there is any chance that the AutoLayout constraint do not show properly in iOS 10.

非常感谢您的帮助.

推荐答案

我在我的一个iOS应用程序中遇到了同样的问题,因为约束在Xcode 7.x中有效,但在Xcode 8中无效,因此我发现了一些工作周围解决它.请找到以下步骤.

I am having the same issues in one of my iOS application as the constraint works in Xcode 7.x but not in Xcode 8, so I have found some work around for resolve it. Please find the below steps.

1)在Xcode 8中打开您的storyboard,然后弹出有关选择初始设备视图的信息,请选择一个选项,然后单击选择设备".请找到以下相同的GIF表示形式.

1) Open your storyboard in Xcode 8, then it popup regarding choose an initial device view, please select one of the option and then click on Choose Device. Please find the below GIF representation for same.

2)完成更改后,选择情节提要,转到文件检查器",在"Interface Builder文档"部分,选择打开位置"字段并应用Xcode 7.x.之后会弹出有关保存的信息,因此请在出现提示时选择保存并关闭"选项.请找到以下相同的GIF表示形式.

2) When you complete your changes, select the storyboard, go to File Inspector, on Interface Builder Document section, select the Opens In field and apply the Xcode 7.x. After that it popup regarding save so please select "Save and Close" option when it is prompted. Please find the below GIF representation for same.

3)关闭Xcode,然后打开应用程序.

3) Close the Xcode and then open the application.

您的情节提要板更改将被保存,并且您的情节提要板将像在Xcode 7.x上一样起作用.

希望它对您有用!

这篇关于iOS 10,XCode 8中的AutoLayout约束问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆