diff --git a/class/HPGrowingTextView.m b/class/HPGrowingTextView.m index 9871c6f..236794e 100644 --- a/class/HPGrowingTextView.m +++ b/class/HPGrowingTextView.m @@ -661,6 +661,22 @@ - (void)textViewDidChangeSelection:(UITextView *)textView { } } +- (void)deleteBackward +{ + [self.internalTextView deleteBackward]; + if (![self respondsToSelector:@selector(snapshotViewAfterScreenUpdates:)]) { + [self refreshHeight]; + [self resetScrollPositionForIOS7]; + } +} +- (void)insertText:(NSString *)text +{ + [self.internalTextView insertText:text]; + if (![self respondsToSelector:@selector(snapshotViewAfterScreenUpdates:)]) { + [self refreshHeight]; + [self resetScrollPositionForIOS7]; + } +} @end