title: Setting a UIView's height based on UIScrollView's height
body: <p>I have 5 <code>UIViews</code> that are contained within a <code>UIScrollView</code>. Then I set the <code>UIScrollView</code>'s <code>contentSize.height</code> to 10,000.</p>
  
  <p>How do I change each view's height that is contained within the <code>UIScrollView</code> to be <code>1/5</code> of the <code>contentSize.height</code>? Also, I wanted to mention that the views and the scroll view are all created through Interface Builder. Here is some of the code in the View Controller I have tried:</p>
  
  <pre><code>override func viewDidLayoutSubviews() {
      super.viewDidLayoutSubviews()
      self.scrollView.layoutIfNeeded()
      scrollView.contentSize.width = UIScreen.mainScreen().bounds.size.width
      scrollView.contentSize.height = 10000
      myView.bounds.size.height = scrollView.contentSize.height * 1/5
      print(scrollView.contentSize.height)
  }
  </code></pre>
  
  <p>This code will work, and set the <code>myView</code> height to 2000, but the very second I scroll, the view snaps back to its original height that I set in Interface Builder. Also I wanted to add that when I print the scrollView's <code>contentSize</code> it returns <code>10,000</code> like expected.</p>
  
  <p>So long story short: <strong>How do I make a UIView's height 1/5 of the Scroll Views content size?</strong></p>