Search code examples
iosswiftxcodestoryboardxcode8

UI elements not displaying where they actually are on storyboard in xcode


though the elements show, they don't show in the proper location

When I put UI elements in to the storyboard on this app that I'm working on they do not show up in the right location. I can edit them, move them, manipulate them... but all of it shows up lower than where they are actually located. then on this second viewcontroller that I have created, the header from the first viewcontroller is now showing up over there.

Not really sure if there is a way that I can reset the storyboards or get this to clean up at all.

thanks.


Solution

  • The two buttons were in a stack view with constraints that were throwing them off. Once I removed the stack view and laid out the buttons without the extra view they worked perfectly.