devopsinthecloud
devopsinthecloud copied to clipboard
textViewShouldBeginEditing not called
Hello,
when I use the mention/any plugin my textViewShouldBeginEditing external delegate method is not called. Would it be possible to have it processed anyway ? My textview has a "fake" placeholder that needs to be removed on that delegate, apparently doing that on didBeginEditing will set the mention in a wrong internal state preventing me from creating a mention at location 0 (I open another bug for this).
thanks
Thanks for reporting these. I'll take a look as soon as I have free time.
Any update for the issue?
Any updates on this?
if textView.selectable = false, the method will NOT be called.
Any update for the issue?
Here is my round about way of solving the placeholder issue.
#pragma mark - UITextViewDelegate
- (void)textViewDidEndEditing:(UITextView *)textView
{
if (![textView hasText])
lbl.hidden = NO;
}
- (void)textViewDidChange:(UITextView *)textView{
if (self.commentTextView.text.length > 500)
{
self.commentTextView.text = [self.commentTextView.text substringToIndex:500];
}
if (self.commentTextView.text.length == 0) {
self.navigationItem.rightBarButtonItem.enabled = NO;
lbl.hidden = NO;
}
else {
self.navigationItem.rightBarButtonItem.enabled = YES;
lbl.hidden = YES;
}
}
So you're hoping to have textViewShouldBeginEditing
called exactly at what point in time?