title: UILabel truncate middle lines in multi-line label
body: <p>I have a UILabel that has 3 lines max. Here is the code:</p>
  
  <pre><code>_testLabel = [[UILabel alloc] init];
  _testLabel.text = @"Line 11111111111111\nLine 2\nLine 3";
  _testLabel.numberOfLines = 3;
  _testLabel.lineBreakMode = NSLineBreakByTruncatingTail;
  [_testLabel sizeToFit];
  _testLabel.width -= 5;
  </code></pre>
  
  <p>By calling sizeToFit and then subtracting 5, I cause line 1 to wrap. This in turn pushes line 3 outside of the allowed bounds, so at the end of "Line 2" there is a "..." and line 3 is not shown.</p>
  
  <p>Instead of wrapping line 1 and truncating line 3, what I really want it to truncate line 1. This way, any lines that are too long to fit in the specified width will be truncated and NOT wrapped.</p>
  
  <p>Is there a way to achieve this?</p>
  
  <p>The best I can think of is to split the string at every '\n' char, and have a separate UILabel for each line with numberOfLines set to 1 for each.</p>
  
  <p>EDIT:</p>
  
  <p>To be more clear, here is what the label looks like with the example code above:</p>
  
  <pre><code>Line
  11111111111111
  Line 2...
  </code></pre>
  
  <p>And here is what I would like it to look like:</p>
  
  <pre><code>Line 11111111111...
  Line 2
  Line 3
  </code></pre>