mercredi 6 mai 2015

Why does my storyboard keep resizing my views

I have a UIStoryBoard with a ViewController that contains a UITableView. I added Views above and below the UITableView to act as a header/footer that will scroll with the UITableView, that is all working appropriately. The problem is when I resize the header/footer Views, they show up correctly in the preview, but they are not the correct size in the app.

Here is how it looks in StoryBoard:

Storyboard

And when I run it on the app the top View takes up the entire screen. But here is the weird thing, if I close Xcode and reopen it both the header and footer views have a height of 568, which I'm assuming is why they look so huge in the app. Why is Xcode resizing these views? I have tried removing all constraints but it doesn't make any difference.

I actually removed the ViewController entirely from the storyboard and remade it and it is still doing this same behavior.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire