title: Xcode Auto Layout: Can't resize window
body: <p>What I want to achieve:</p>
  
  <pre><code>Custom View 1
     aligned at the top
     fixed height = 20px
     width = window width
  
  Horizontal Split View
     just below the custom view
     width = window width
     height = as large as possible
  
  Custom View 2
     aligned at the bottom
     fixed height = 20px
     width = window width
  </code></pre>
  
  <p>It's a really simple layout: a header and a footer at the top and bottom of the window, and a split view in between with some content to the left and to the right that should resize with the window. However, Apple designed the Auto Layout manager so poorly, I can't seem to get this to work. (I've fumbled around for about three hours now!)</p>
  
  <p>The problem is: As soon as I give the custom views a fixed height, the window height is locked, I can't resize it vertically any more. I'm trying to do this with the following constraints:</p>
  
  <pre><code>Custom View 1
      Constraints
      height = 20px
  
  Custom View 2
      height = 20px
  
  Constraints
      Leading horiz space from Custom View 1 to Superview = 0
      Leading horiz space from Custom View 2 to Superview = 0
      Leading horiz space from Split View to Superview = 0
      Trailing horiz space from Custom View 1 to Superview = 0
      Trailing horiz space from Custom View 2 to Superview = 0
      Trailing horiz space from Split View to Superview = 0
  
      Top vert space between Custom View 1 and Superview = 0
      Vert space between Custom View 1 and Split View = 0
      Vert space between Custom View 2 and Split View = 0
      Bottom vert space between Custom View 2 and Superview = 0
      Top vert space between Custom View 2 and Superview = 344px (!)
  </code></pre>
  
  <p>The last line is added by Xcode, and I can't delete it. Of course, this is responsible for the fixed vertical layout. How can I get rid of it???</p>