title: Fit a UIView to screen
body: <p>I would like to add portrait orientation to an application. Is there a way to shrink or fit a UIView (created in a xib) to the screen?</p>
  
  <p>I have landscape sized views in the xib files and would now like to set them to the opposite of using Interface Builder stretching (the center block).</p>
  
  <p><img src="https://i.stack.imgur.com/GXqKr.png" alt="enter image description here"></p>
  
  <p>Or is this possible in code? </p>