title: Swift - Autolayout resize button on bigger screen
body: <p>i'm trying to develop a calculator using swift (see image)</p>
  
  <p><img src="https://i.stack.imgur.com/6SclJ.png" alt="iphone 5s"></p>
  
  <p>since i have not entered any constraints, when i run the app on iphone screen larger than 4 inches, buttons remain in the same position (see image)</p>
  
  <p><img src="https://i.stack.imgur.com/649oS.png" alt="iphone 6"></p>
  
  <p>which constraints can i enter to ensure that the size of the buttons can grow with the increase of the screen size? Note that the red view is a content view inside a scroll view so with the following hierarchy:</p>
  
  <ul>
  <li>View Controller
  
  <ul>
  <li>Scroll View
  
  <ul>
  <li>Content Red View
  
  <ul>
  <li>Buttons</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>where scroll view has the following constraints: (leading, trailing, bottom and top to his superview) while the content view has: (leading, trailing, bottom, top, equal width and equal height to scroll view)</p>
  
  <p><strong>EDIT:</strong> <em>in response to Rizwan Shaikh</em>
  <img src="https://i.stack.imgur.com/2rt4G.png" alt="edit"></p>
  
  <p>it works, the only problem is that the container view (red) has become lower than the scroll view (green) when i run the app with iphone 6/6 plus (see image), rather on the iPad the buttons exceeds the size of the container view forcing the scroll view to scroll vertically, why this happening? </p>
  
  <p><strong>EDIT 2:</strong> <em>in response to Rizwan Shaikh</em></p>
  
  <p><img src="https://i.stack.imgur.com/FfSvq.png" alt="iphone4s">
  <img src="https://i.stack.imgur.com/bbkxe.png" alt="iphone6">
  <img src="https://i.stack.imgur.com/jBK64.png" alt="ipad"></p>
  
  <p>Thank you!</p>