I want to disable text selection on a UITextView. Until now what i\'ve already done is:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
If you want to disable cut/copy/paste on all UITextView
of your application you can use a category with :
@implementation UITextView (DisableCopyPaste)
- (BOOL)canBecomeFirstResponder
{
return NO;
}
@end
It saves a subclassing... :-)
Otherwise, just subclass UITextView
and put :
- (BOOL)canBecomeFirstResponder
{
return NO;
}