更新到Xcode 8后的布局问题 [英] Layout issues after updating to Xcode 8
问题描述
升级到Xcode 8之后,我的一个屏幕之前和之后是这样的。
我所做的就是打开我的 main.storyboard ,然后从那里建立并运行我的在我的手机上的应用程序。
在我的版本控制中,我可以看到Xcode正在对我的main.storyboard进行很多更改,就在我打开它的时候。
每当我删除这些更改时,我都会看到我在Xcode 7.3.1中看到的内容。但是,只要我用故事板重新打开界面构建器,我就会看到这些更改重新出现。
我能在这里做些什么吗?
Here is a before and after of one of my screens after I upgraded to Xcode 8.
All I did was open up my main.storyboard and from there, I built and ran my app on my phone.
In my version control, I can see Xcode is doing a lot of changes to my main.storyboard just from me opening it.
Whenever I delete those changes, I can see what I use to see in Xcode 7.3.1.
But, as soon as I re-open interface builder with my storyboard, I see those changes come back into place.
Is there something I can do here?
推荐答案
我有一个类似的问题,一旦我将storyboard文件转换为兼容Xcode8,桌面图像就不会出现了。这看起来像是Xcode8的一个错误,所以在发布错误修复之前,这是一个解决方法:
I had a similar problem with tableview images not appearing once I converted the storyboard file to be Xcode8 compatible. This looks like a bug with Xcode8, so until a bug fix is released, here is a work around:
- 在Xcode 8中打开你的故事板并选择初始设备视图。按照惯例进行更改。
- 完成更改后,选择故事板 - >文件检查器 - >打开 - >选择'Xcode 7.x'。
- 提示时选择保存并关闭
- 您的故事板更改将被保存,故事板将像Xcode8之前一样运行。
当您需要对故事板文件进行其他更改时,请再次按照以下步骤操作。
When you need to make other changes to the storyboard file, follow these steps again.
这篇关于更新到Xcode 8后的布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!