1
votes

Xcode5, interface builder - add a view controller. Set to free form and set height to say 1,000. I'm placing labels and images and when first setting up the view I don't know what the height is so I set it pretty large to give myself some working room. I add in scroll view, labels etc., but then comes 5:00 and I have to stop. I shut down XCode and log out. Next Day: open up project and continue working and once everything is set up and then go to change my height of the view controller to fit my content. The value I set the day before is now permanent. It can't be changed. Auto layout or not, I can no longer change the value for my view's height. Autolayout and constraints overrides anything I try in code.
My only way around this is to start early and make sure I have everything set up (labels, images) so I can set view's height before shutting down for the night. How does everyone else get around this?

enter image description here

1
You said you added a ViewController, so you're using Storyboards? Can you post a screenshot of this VC and whatever is containing it?Acey
Just added the screenshot above.KFP

1 Answers

4
votes

To update the height, go back into the UIViewControllers Size Inspector. The value you set there will be what your View is set to.

It will either look like this if it's still on Freeform:

ViewController Freeform size

Or this if it somehow got set back to Fixed:

ViewController Fixed size