title: Scrollview with navigation bar + auto layout
body: <p>I have a ViewController embedded in NavigationController. I placed ScrollView inside it, then content view covering the full area (to set ScrollView's content size) and some labels. I tried to set constraints for all of the controls but I failed.</p>
  
  <p>This is how it looks in Xcode:</p>
  
  <p><a href="https://i.stack.imgur.com/cjxpf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cjxpf.png" alt="Xcode view"></a></p>
  
  <p>And this is in Simulator:</p>
  
  <p><a href="https://i.stack.imgur.com/sEtoh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sEtoh.png" alt="Simulator view"></a></p>
  
  <p>Red color is scroll view, green – content view. Of course I can scroll the view to get the bottom label on screen.</p>
  
  <p>What I did wrong? What are the proper constraints? I want of course the ScrollView to cover the entire usable area of window (from bottom of navigation bar to bottom of screen).</p>
  
  <p>For full reference you can <a href="https://www.dropbox.com/s/jy23vu2r0vtvscs/ios-ScrollTest.zip?dl=0" rel="noreferrer">download the project</a>.</p>