Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have to update frame of everything in storyboard every time I start Xcode

So each time I open my project in Xcode, I have 100's of warning because the frames of every UI Object has been moved. I have to take the time and go to each UIViewController and update frames on it.

Is there a reason this happens? How can I fix this? Any other information I need to mention?.

like image 359
Matthew Krager Avatar asked Aug 28 '15 20:08

Matthew Krager


2 Answers

Do you use a repository for your code? There may be some configuration file missing, probably not comited properly

like image 73
Pablo A. Avatar answered Oct 27 '22 01:10

Pablo A.


In my case, this was happening because size-class for which I have set the constraints and layout got changed when I opens the Xcode project. So make sure that the size class remain the same for which you have applied the layout or change it if it has been modified by the Xcode.

If above does not work for you, you can try having a local repository created by the Xcode and commit the code before you quit the Xcode.

Hope this helps!!

like image 35
Manish Verma Avatar answered Oct 27 '22 01:10

Manish Verma