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
  • 314,917
  • 42
  • 532
  • 579
Salman Ghumsani
  • 3,647
  • 2
  • 21
  • 34

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
  • 740
  • 7
  • 25