title: iOS 8 - AutoLayout issue - UIImageView inside UITableViewCell ignoring width constraints
body: <p>I have a problem with iOS 8 <code>autolayout</code>.<br>
  I want to have a custom <code>UITableviewCell</code> with a <code>UILabel</code> and 5 <code>UIImageView</code>. I want the images to be shown in landscape-mode but not in portrait mode, because then the <code>UILabel</code> would be squeezed to narrow.</p>
  
  <p>I designed the view in interface builder and added the following constraints (among others):</p>
  
  <pre><code> 1. priority 1000: Label width &gt;= 120px
   2. priority 1000: ImageView[1..5]
      horizontal space to next one = 0px (to align them next to each
      other, the rightmost image view got horizontal space = 0 to content
      view to align them to the right side) 
   3. priority  999: ImageView[1..5]
      width = 40px 
   4. priority  998: ImageView[1..5] width =  0px (hide image
      views if the 40px constraint can't be satisfied because of the
      required label width)
  </code></pre>
  
  <p>I also set <code>ImageView</code> to center the image and to clip subviews, as well as content compression priority to 1 (lowest).
  The <code>UILabel</code> content hugging priority I also set to 1 so that it even resizes if the text is shorter than 120px.  </p>
  
  <p>What happens now is:</p>
  
  <ul>
  <li>landscape mode:<br>
  everything works fine<br>
  <code>| Labelxxxxx      img1 img2 img3 img4 img5 |</code></li>
  <li>portrait mode:<br>
  image views get squeezed to something like 10px (which means that it breaks constraint #3 (40px width) in order to satisfy constraint #1 (label width), but it does not set the image views widths to 0px which would satisfy constraint #4)<br>
  <code>| Labelxxxxx im.im.im.im.im. |</code></li>
  </ul>
  
  <p>I don't get any exception or log message about any unsatisfiable constraints (not even for the 40px constraint although the image views get squeezed to 10px)  </p>
  
  <p>Thanks in advance for any help you can provide!</p>
  
  <p>--edit--</p>
  
  <p>I tried some alternatives, including setting the constrains programmatically, but it looks like they are also set as intended when using IB.<br>
  Shouldn't it be possible to set 2 contradictory constraints with different priorities - as soon as the one with the higher priority needs to be broken to the advantage of an even higher constraint the second one should be used as as fail-over?<br>
  (In my case: label width = highest priority, breaks <code>ImageView</code> width 40px constraint --> <code>ImageView</code> width 0px as fail-over)</p>