What must I do to add a constraint to a view in a Storyboard launch file?
<p>I added a Storyboard launch file to upgrade a project from iOS 4 to iOS 9. The app runs in the Simulator but nothing I do will centre views for iPhone5 and iPhone 6 or scale them to fill the frame. Instead they look like bonsai versions of an iPhone 4 pinned in the top left of the screen. </p>

<p>When I try to add constraints to centre the views by following <a href="https://stackoverflow.com/a/31548575/2348597">the procedure described here</a>, the menu will not give me options to choose the view I need to constrain. </p>

<p>Instead I get this.</p>

<p><a href="https://i.stack.imgur.com/IUAJC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IUAJC.png" alt="enter image description here"></a></p>

<p>The bottom two - <code>Horizontally in Container</code> and <code>Vertically in Container</code> - are the only options I can check. But pulling down on the arrow to the right of the text box only gives some of the options needed to <code>Add Constraints</code></p>

<p>What do I need to do to enable the view option ?</p>

<p>EDIT 1. </p>

<p>And furthermore, when I try to constrain width and height I get this</p>

<p><a href="https://i.stack.imgur.com/EEYEi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EEYEi.png" alt="enter image description here"></a></p>

<p>All six options are in grey and none of the text boxes change</p>

<p>EDIT 2.</p>

<p>And using the Size Inspector to look at the view I am trying to centre and fill, the view has no constraints as shown below.</p>

<p>It is really starting to look like there is no simple way to launch an old app where views have been created programmatically and have Storyboard Launch automatically layout views to suit different iPhone screen sizes. </p>

<p><a href="https://i.stack.imgur.com/uCVOl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uCVOl.png" alt="Size Inspector"></a></p>