Main.Storyboard帧未更新 [英] Main.Storyboard Frames Not Updated

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

问题描述

我目前正在我打算提交给iOS的App Store中的应用程序。通常情况下,当我在X code的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警告。我想删除这些错误为(pviously提到我$ P $)我提交这个应用程序到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),因为它显示你设计在尺寸级别 宽度紧凑的布局放大器;高度ANY 。如果你设计你的故事板中的尺寸级别 宽度ANY&放大器;高度ANY 这将解决您的problem.IT也正好与我,我已经改变了大小类功放&;所有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帧未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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