1

Hi,

I am developing an app in Xcode 4.3.2. I have a small question that is I want to enable scroll view property of UITextView and Disable the (copy,selectAll,define) properties of UITextView at a time in my code.

Is it possible?

Atulkumar V. Jain
  • 5,102
  • 9
  • 44
  • 61
SURESH SANKE
  • 1,653
  • 17
  • 34
  • 1
    Possible duplicate of http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview – Maulik Jun 27 '12 at 07:09

2 Answers2

1

Subclass UITextView and overwrite canBecomeFirstResponder:

- (BOOL)canBecomeFirstResponder {
    return NO;
}
Maulik
  • 19,348
  • 14
  • 82
  • 137
0

subclassing!

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
    return NO;
}
Community
  • 1
  • 1
CodaFi
  • 43,043
  • 8
  • 107
  • 153