Subclassing of UIWebView is restricted by Apple. But I need to replace method canPerformAction
to the following one:
-(BOOL) canPerformAction:(SEL)action withSender:(id)sender {
if ((action == @selector(Copy:)) || (action == @selector(Paste:))) {
return YES;
} else {
return NO;
}
}
How to replace this method without subclassing? Thank you a lot for the help!