Disable text selection UITextView
Posted
by marcio
on Stack Overflow
See other posts from Stack Overflow
or by marcio
Published on 2009-12-13T12:21:57Z
Indexed on
2010/04/01
0:03 UTC
Read the original article
Hit count: 518
iphone-sdk
Hello,
i want to disable text selection on a UITextView. Until now what i've
already done is:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
[UIMenuController sharedMenuController].menuVisible = NO;
if (action == @selector(paste:))
return NO;
if (action == @selector(select:))
return NO;
if (action == @selector(selectAll:))
return NO;
return NO;
}
In this away i set UIMenuController to hidden and i put a stop to text copy but the text selection is still visible. Google results (also stackoverflow) take me to no solution. Has someone already faced the same problem? Any ideas? Thanks in advance, marcio
© Stack Overflow or respective owner