UITextView becomes FirstResponder twice, then not thereafter
I use this code snippet to resign first responder
- (BOOL)textView:(UITextView *)textView
shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
if([text isEqualToString:@"\n"]) {
[textView resignFirstResponder];
return NO;
}
return YES;
}
I have the textView in a tableView cell. The problem I'm having is I can
tap the textview and edit the field only twice, after that the textview
doesn't respond to a touch anymore.
No comments:
Post a Comment