title: iOS create NSLayoutConstraint programmatically for table view cell content
body: <p>I want to add in the cellForRowAtIndexPath some views to my cell content view and for them constraints but nothing works. I have something like this:</p>
  
  <pre><code>NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem:imageView
                                    attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:cell.contentView attribute:NSLayoutAttributeLeft multiplier:1.0f constant:10.0f];
  
  [cell.contentView addConstraint:constraint];
  </code></pre>
  
  <p>How should I do this?</p>