Main.Storyboard 框架未更新

2023-09-09移动开发问题
2

本文介绍了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 框架未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

[ios.cocos2d+box2d]如何禁用自动旋转?
[ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)...
2024-08-12 移动开发问题
7

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9

如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?
How can I implement a virtual joystick for a cocos2d game outside the cocos2d environment?(如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?)...
2024-08-12 移动开发问题
13