title: How to set UIScrollView Height in Swift
body: <p>I'm using swift to build an application. I want to add some content to my view controller using storyboard. </p>
  
  <p>I already put everything inside the scrollview and set the specific height, but however when I run the application, the scrollview always set longer than the button in the bottom of the view</p>
  
  <p>I want the scroll view stop right after the button</p>
  
  <p>Please kindly help me how to solve this problem</p>
  
  <p>thank you</p>
  
  <p><a href="https://i.stack.imgur.com/bZKLv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bZKLv.png" alt="this is the top of the view"></a></p>
  
  <p><a href="https://i.stack.imgur.com/hCcyg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCcyg.png" alt="after scrolling (see the blank content after button submit)"></a></p>
  
  <p>after scrolling</p>
  
  <p>for your information, please ignore the white space between 'critics' and submit button, because actually there's UITextView between them but not visible (still try to add some border)</p>
  
  <p>these are my storyboard preview</p>
  
  <p><a href="https://i.stack.imgur.com/DX41Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DX41Y.png" alt="storyboard 1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/rCVci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rCVci.png" alt="storyboard 2"></a></p>