Main.Storyboard 框架未更新

Main.Storyboard Frames Not Updated(Main.Storyboard 框架未更新)

本文介绍了Main.Storyboard 框架未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在制作一个我计划提交到 iOS App Store 的应用程序.通常,当我在 Xcode 的 Main.Storyboard 中更新我的帧时,它会保持这种状态.但是,现在没有了.每当我关闭应用程序并稍后重新打开它时,框架都不会更新.它看起来像这样:

I am currently making an app which I plan to submit to the iOS App Store. Normally, when I update my frames in the Main.Storyboard of Xcode, it stays like that. However, now it does not. Whenever I close the app and reopen it later, the frames are not updated. It looks like this:

更新框架后,它看起来像这样(我希望它看起来像什么):

After I update the frames, it looks like this (what I want it to look like):

当我在模拟器上运行该应用程序时,它看起来仍然很好,但我的应用程序中仍然有 16 个警告.我想删除这些错误,因为(我之前提到过)我正在将此应用程序提交到 iOS App Store.我怎样才能解决这个问题?谢谢.

The app still looks fine when I run it on the simulator, but I still have 16 warnings in my app. I would like to remove these bugs as (I previously mentioned) I am submitting this app to the iOS App Store. How can I fix this? Thanks.

推荐答案

1)正如它显示你已经设计了 size class width-COMPACT &高度-任意.如果你在 size class width-ANY &height-ANY 它会解决你的问题.它也发生在我身上.我已经改变了尺码等级和更新了所有 ViewControllers 的约束.

1)As it showing you have designed the layout in size class width-COMPACT & height-ANY. If you design your storyboard in size class width-ANY & height-ANY it will solve your problem.IT also happened with me.I have changed the size class & updated constraints of all ViewControllers.

2) 它现在显示一个空白视图控制器.但是,您不会收到任何警告

2)It now shows a blank view controller. However, You will not get any warnings

3) 现在您可以通过更改控制器内视图的大小类使其可见选择视图->转到属性检查器->转到底部->选择已安装的&删除之前选择的尺码等级

3) Now You can make it visible by changing size class of the views inside the controller select the view ->go to attribute inspector->go to bottom-> select installed & delete earlier selected size class

4)为所有观点做这件事 &更新约束

这篇关于Main.Storyboard 框架未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Main.Storyboard 框架未更新

基础教程推荐