title: Why is NSTextAttachment image not displayed?
body: <p>I'm trying to add an image to an attributed string:</p>
  
  <pre><code>NSTextAttachment *locationIcon = [[NSTextAttachment alloc] init];
  locationIcon.image = [UIImage imageNamed:@"location-pin-icon"];
  NSAttributedString *iconString = [NSAttributedString attributedStringWithAttachment:locationIcon];
  [string appendAttributedString:iconString];
  NSAttributedString *locationNameString = [[NSAttributedString alloc] initWithString:@"some text" attributes:linkAttributes];
  [string appendAttributedString:locationNameString];
  </code></pre>
  
  <p>Then I simply set <code>myLabel.text = string;</code> (where <code>myLabel</code> is a <code>TTTAttributedLabel</code>)</p>
  
  <p><code>location-pin-icon</code> is a valid image (I've checked it in debugging too). However, the location pin icon is not being displayed in the label (the following "some text" is displayed perfectly though, and <code>linkAttributes</code> is just a collection of system font with a custom blue color). I've also tried manually setting bounds to the text attachment, or leaving a space before the text, but nothing seems to work.</p>
  
  <p>What am I doing wrong?</p>