title: Copy NSAttributedString in UIPasteBoard
body: <p><strong>How do you copy an NSAttributedString in the pasteboard</strong>, to allow the user to paste, or to paste programmatically (with <code>- (void)paste:(id)sender</code>, from UIResponderStandardEditActions protocol).</p>
  
  <p>I tried:</p>
  
  <pre><code>UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
  [pasteBoard setValue:attributedString forPasteboardType:(NSString *)kUTTypeRTF];
  </code></pre>
  
  <p>but this crash with:</p>
  
  <pre><code>-[UIPasteboard setValue:forPasteboardType:]: value is not a valid property list type'
  </code></pre>
  
  <p>which is to be expected, because NSAttributedString is not a property list value.</p>
  
  <p>If the user paste the content of the pasteboard in my app, I would like to keep all the standards and custom attributes of the attributed string.</p>