quick simple question
when using WebView with some text in it - the user can select a fragment of text from it and click on the UIButton that I created by doing the following:
-(IBAction)copyToClip { NSString *copyClip = [UIPasteboard generalPasteboard].string; NSLog(@"Clip = %@",copyClip);
I would like to call the same function without UIButton, so when the user performs the “copy” action, he activates the above code. (I accept the listener)
What would be a suitable listener for this?
chewy source share