Main.Storyboard Frames Not Updated

混江龙づ霸主 提交于 2019-12-20 02:29:15

问题


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):

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:


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)It now shows a blank view controller. However, You will not get any warnings

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)Do it for all views & update the constraints



来源:https://stackoverflow.com/questions/34351106/main-storyboard-frames-not-updated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!