title: How to add Dynamic label inside UIScrollView in ios?
body: <p>Hierarchy of a <code>ViewController</code></p>
  
  <pre><code>ScrollView 
      |_ _ UIView (Height and width equal to its superView)
                    |_ _ UIView (Set Height to 150 and I put a label inside this view and set number of lines to 0)
                    |_ _ UIView (Align bottom to top view with the height of 150)
  </code></pre>
  
  <p>If I keep the <code>label.text</code> too much then it's going behind the bottom view like this:</p>
  
  <p><a href="https://i.stack.imgur.com/b0D4N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b0D4N.png" alt="enter image description here"></a></p>
  
  <p>How can I keep the constant vertical distance between the second view and first view? So that it won't distort the UI. I want to achieve this</p>
  
  <p><a href="https://i.stack.imgur.com/LPtyr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LPtyr.png" alt="enter image description here"></a></p>
  
  <p>The approach I am using won't work because I am providing the fixed height for both <code>UIView</code>. Is there any way that we can handle the dynamic length of <code>label</code> in a <code>UIScrollView</code>?</p>