UITextView disabling text selection
Posted
by dizy
on Stack Overflow
See other posts from Stack Overflow
or by dizy
Published on 2009-10-28T19:18:45Z
Indexed on
2010/06/12
18:33 UTC
Read the original article
Hit count: 258
I'm having a hard time getting the UITextView
to disable the selecting of the text.
I've tried:
canCancelContentTouches = YES;
I've tried subclassing and overwriting:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
(But that gets called only After the selection)
- (BOOL)touchesShouldCancelInContentView:(UIView *)view;
(I don't see that getting fired at all)
- (BOOL)touchesShouldBegin:(NSSet *)touches
withEvent:(UIEvent *)event
inContentView:(UIView *)view;
(I don't see that getting fired either)
What am I missing ?
© Stack Overflow or respective owner