title: Any way to check and get NSLayoutConstraint conflicts programmatically?
body: <p><strong>EDIT: I updated the question so it is more clear.</strong> </p>
  
  <p>Is there a way to check the constraints and get an <code>NSArray</code> of conflicting ones?</p>
  
  <p>I'm working on an <a href="https://github.com/fmaylinch/autolayout-helper" rel="nofollow">Autolayout helper</a> class and I would like to print a pretty log when there are conflicts or errors.</p>
  
  <p>By default, when there are layout conflicts you get a log that shows the conflicting constraints like this:</p>
  
  <pre><code>"&lt;NSLayoutConstraint:0x7fe110638610 UILabel:0x7fe11062bb80'green'.leading == UIView:0x7fe11070de50.leadingMargin&gt;",
  "&lt;NSLayoutConstraint:0x7fe1106386b0 H:[UILabel:0x7fe11062bb80'green'(20)]&gt;",
  "&lt;NSLayoutConstraint:0x7fe110638660 UIView:0x7fe11070de50.trailingMargin == UILabel:0x7fe11062bb80'green'.trailing&gt;",
  "&lt;NSLayoutConstraint:0x7fe11063fbe0 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7fe11070de50(375)]&gt;"
  </code></pre>
  
  <p>I would like to get those constraints to display them in a prettier way (by view key for example). Any idea on how to do it?</p>
  
  <p>Thanks!</p>