title: How to do copy/paste function programmatically in iphone?
body: <p>I have a text-view with some text and a copy button in that view,</p>
  
  <p>When the user enters some text and presses the copy button, it needs to copy that text and paste that text wherever he wants.</p>
  
  <p>I know there is a default copy/paste menu-controller in iOS, but I want to do this functionality in a button click. I think there is <code>UIPasteboard</code> to do this functionality, but I don't know how to use it.</p>