Other than adding the UITapGestureRecognizer, you can set a delgate for UITextView.
Code to do that is as follows.
txtview.delegate = self;
Now you can listen to the delegate method.
- (void)textViewDidBeginEditing:(UITextView *)textView
{
NSLog(@"textView tag is %d",txtview.tag);
}