Search code examples
iosxcodeautolayoutxcode-storyboard

Main.Storyboard Frames Not Updated


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:

Not updated Frames

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

Updated Frames

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.


Solution

  • 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