1

In my app I need to select some text in UITextview(editable) but I don't want to show UIMenuController popover.

In previous iOS, I override

(BOOL)canPerformAction:(SEL)action withSender:(id)sender 

of UIResponder and set the return value to NO. But after I used IOS 5 GM, the UIMenuController popover still doesn't hide. I tried to set the return value to YES, but it's still the same. Can anyone tell me how to hide it in iOS5?

Thank you, regards,

Risma

Shmidt
  • 16,436
  • 18
  • 88
  • 136
R. Dewi
  • 4,141
  • 9
  • 41
  • 66

1 Answers1

0

See this answer. Basically need to subclass UITextView (or UIWebView). Works fine on iOS5 too.

Community
  • 1
  • 1
lucasart
  • 1,643
  • 1
  • 20
  • 29