I have a UITextView in my app, is there any way I can detect if a user has selected it and copied the text inside?
OR
Is there anyway I can prevent the copy button from appearing?
I have a UITextView in my app, is there any way I can detect if a user has selected it and copied the text inside?
OR
Is there anyway I can prevent the copy button from appearing?
If you want to disable copy, paste functions you should subclass UITextView and add this code to your new class:
- (BOOL)canBecomeFirstResponder
{
return NO;
}
How to detect pasteboard events such as copying, pasting look here..
How disable Copy, Cut, Select, Select All in UITextView
or here..
How to disable copy paste option from UITextField programmatically