继承UITextView重写canPerformAction:withSender:方法.
-(BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
[UIMenuController sharedMenuController].menuVisible = NO; //donot display the menu
[self resignFirstResponder]; //do not allow the user to selected anything
return NO;
}
浙公网安备 33010602011771号