Main.Storyboard Frames Not Updated(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 框架未更新
基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01