title: Copy content of UILabel to clipboard
body: <p>I subclasses UILabel to create a copiable label with this project.
  <a href="https://github.com/zoul/UILabel-Clipboard-Sample" rel="nofollow">UILabel clipboard</a></p>
  
  <p>This is the code it has:</p>
  
  <pre><code>- (void) copy: (id) sender
  {
      NSLog(@"Copy handler, label: “%@”.", self.text);
  }
  
  - (BOOL) canPerformAction: (SEL) action withSender: (id) sender
  {
  return (action == @selector(copy:));
  }
  
  - (void) handleTap: (UIGestureRecognizer*) recognizer
  {
      [self becomeFirstResponder];
      UIMenuController *menu = [UIMenuController sharedMenuController];
      [menu setTargetRect:self.frame inView:self.superview];
      [menu setMenuVisible:YES animated:YES];
  }
  
  - (BOOL) canBecomeFirstResponder
  {
      return YES;
  }
  </code></pre>
  
  <p>And the NSLog logs exactly the content I want to copy inside the label, however, the content is not copied to the clipboard.</p>
  
  <p>Any idea?</p>
  
  <p>And how to copy image?</p>