3

Here I have a custom UITextView. It shows many of the shortcuts that is not needed and also it shows wrong action, like when textview is empty it shows the "cut" "copy" "select" & "select all" action that is not required. Please refer to the screenshot for more clarity. Click here

screen shot

enter image description here

rmaddy
  • 307,833
  • 40
  • 508
  • 550
Salman Ghumsani
  • 3,589
  • 2
  • 19
  • 33

1 Answers1

1

Try this to disable the entire Select/Copy/Paste Menu in a UITextView

-(BOOL)canPerformAction:(SEL)action withSender:(id)sender
{    
  [UIMenuController sharedMenuController].menuVisible = NO;
  return NO;    
}
Shahrukh
  • 730
  • 9
  • 24