title: Limit NSAttributedString number of lines
body: <p>is there a way to limit number of lines in paragraph in <strong>NSAttributedString</strong>?<br/>
  Im appending two strings in <strong>NSAttributedString</strong> and i want them to be maximum 3 lines, the first string will be 1-2 lines , truncated if needed. and the second string should be always on the last line<br/>
  Something like: <br/></p>
  
  <pre><code>this is my first string
  if its too long i't will get trun...
  But this is my second string
  </code></pre>
  
  <p>what i did is:</p>
  
  <pre><code>    // First string
      NSAttributedString *first = [[NSAttributedString alloc] initWithString:@"this is my first string if its too long i't will get trunticated"
                                                                 attributes:@{NSForegroundColorAttributeName:[UIColor redColor],
                                                                              NSFontAttributeName:[UIFont fontWithName:@"HelveticaNeue-Light" size:17.0]];
      [str appendAttributedString:first];
  
      // New line
      [str appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n"]];
  
      // Add photo count
      NSAttributedString *second = [[NSAttributedString alloc] initWithString:@"But this is my second string"
                                                                  attributes:@{NSForegroundColorAttributeName:[UIColor redColor],
                                                                               NSFontAttributeName:[UIFont fontWithName:@"HelveticaNeue-Light" size:14.0]}];
      [str appendAttributedString:second];
  </code></pre>
  
  <p>But the result is: <br/></p>
  
  <pre><code>this is my first string
  if its too long i't will get
  trunticated
  </code></pre>
  
  <p>The first string takes the first 3 lines and push the second string out of the label.<br/>
  How can i limit the first string paragraph to 2 lines?</p>