title: Change size of NSTextAttachment Image?
body: <p>I am using the following code to format the raw HTML of an RSS feed into an <code>NSAttributedString</code>. The HTML contains <code>&lt;img&gt;</code> tags that cause the image to be attached as an <code>NSTextAttachment</code> into the <code>NSAttributedString</code>. The problem is that the image is far too large for the UITextView that the attributed string is placed in. Is there a way I can manipulate the size of the image from within the attributed string? Below is an excerpt from the whole attributed string that represents the image attachment. </p>
  
  <pre><code>{
      NSAttachment = "&lt;NSTextAttachment: 0x16d29450&gt; \"e0e1d483a922419807a2378a7ec031af.jpg\"";
      NSColor = "UIDeviceRGBColorSpace 0 0 0 1";
      NSFont = "&lt;UICTFont: 0x16ef8a40&gt; font-family: \"Times New Roman\"; font-weight: normal; font-style: normal; font-size: 12.00pt";
      NSKern = 0;
      NSParagraphStyle = "Alignment 4, LineSpacing 0, ParagraphSpacing 12, ParagraphSpacingBefore 0, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 0, Tabs (\n), DefaultTabInterval 36, Blocks (null), Lists (null), BaseWritingDirection 0, HyphenationFactor 0, TighteningFactor 0, HeaderLevel 0";
      NSStrokeColor = "UIDeviceRGBColorSpace 0 0 0 1";
      NSStrokeWidth = 0;
  }
  </code></pre>