This is what I use to detect pasted images:
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ if (UIPasteboard.generalPasteboard.image && [UIPasteboard.generalPasteboard.string.lowercaseString isEqualToString:text.lowercaseString]) { //Pasted image return NO; } return YES;}