title: Make two AutoLayout constraints equal in code?
body: <p>I’m pawing my way through AutoLayout for the first time (and not using IB/storyboards to do so), and I’m trying to do some simple vertical alignment in a <code>UITableViewCell</code>, of a title label and a detail label, laid out like this:</p>
  
  <pre><code>—————— 
  Padding
  Title Label
  Spacing (3px)
  Detail Label
  Padding
  ——————
  </code></pre>
  
  <p>The part I’m strugging with is getting the two “Padding” constraints there to be kept equal at all times. Everything else works, but the labels are either at the very top or very bottom of the cell.</p>
  
  <p>I’m actually using Masonry to implement this, and it looks like this:</p>
  
  <pre><code>// Constrain the title label at the top of the label container.
  [title makeConstraints:^(MASConstraintMaker *make) {
      make.top.greaterThanOrEqualTo(self.contentView.top).with.priorityLow();
  }];
  
  // Constrain the detail label to the bottom of the label container.
  [detail makeConstraints:^(MASConstraintMaker *make) {
      make.top.equalTo(self.titleLabel.bottom).with.offset(3).with.priorityHigh();
      make.bottom.lessThanOrEqualTo(self.contentView.bottom).with.priorityLow();
  }];
  </code></pre>
  
  <p>I need the <code>make.top</code> line from the <code>title</code> constraint and the <code>make.bottom</code> line from the <code>detail</code> constraint to always maintain the same value, so that the title/spacing/detail sits in the middle.</p>
  
  <p>What am I missing here?</p>