title: Is it possible to selectively override layout contraints in Interface Builder?
body: <p>I'm attempting to adjust the size of a UIImageView dependent on whether the device is an iPhone 5 (tall screen) or an earlier iPhone version (shorter screen).  Below is my code.  However when I run the app these instructions are ignored.  I suspect the problem is caused by auto layout constraints.  If I turn those constraints off the image is resized but that messes up the rest of my layout.  Is there anyway to selectively override auto layout rather than turning it off?</p>
  
  <pre><code>CGRect screenBounds = [[UIScreen mainScreen] bounds];
  if (screenBounds.size.height == 568) {
  
      // code for 4-inch screen
      avatarImage.frame = CGRectMake(43, 372, 75, 75);
  
  
  
  } else {
  
      // code for 3.5-inch screen
      avatarImage.frame = CGRectMake(43, 372, 50, 50);
  
  }
  </code></pre>
  
  <p>EDIT</p>
  
  <p>Below is an image of the problem I am trying to solve.  I want the avatar image to resize proportionally until it fits in the smaller view.  And I want to programmatically move the text field up and to the right of the label.</p>
  
  <p><img src="https://i.stack.imgur.com/TxONe.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/TfV8O.png" alt="enter image description here"></p>