title: Hide Copy and Deselect UITextView options after copying all text
body: <p>I am working on a messaging app. I want to give a "copy" option to the user when they enter their message in a <code>UITextView</code>. When the user presses the "copy" button, it is copying the message, but the popover shows again and again, and the text is still selectable.</p>
  
  <p>I don't know how to control this. I have pasted some source code for your reference. </p>
  
  <p>I wrote a sub class for <code>UITextView</code>.</p>
  
  <pre><code>- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
  {
      NSLog(@"Action : %@", NSStringFromSelector(action));
      NSLog(@"Sender : %@", sender);
      if (action == @selector(copy:))
      {
          [self selectAll:self];
          //return [super canPerformAction:action withSender:sender];
          return YES;
      }
      else if (action == @selector(cut:))
      {
          return NO;
      } 
          return NO;
  }
  </code></pre>