title: How to copy string to clipboard
body: <p>How do you copy text to the clipboard in xcode? Currently, I am using the following code:</p>
  
  <pre><code>UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
          [pasteboard setString:shareString];
  </code></pre>
  
  <p>When I try to paste this into another one of the simulator apps, I end up pasting the entire view controller code. ??? Thanks in advance!</p>