title: UIPasteboard to copy outside the app
body: <p>I am trying to write a function to copy text from app. this text should be available outside the app in the clipboard, like when writing messages, web browser search fields.</p>
  
  <pre><code>UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];    
  NSString     *text       = [command.arguments objectAtIndex:0];
  [pasteboard setString:text];
  NSLog(@"Value of myString = %@", pasteboard.string);
  </code></pre>
  
  <p>the value gets copied properly , but could not be used outside the app. I have tested things on simulator. How could I make the values available in the main clipboard also outside the app? Thanks</p>