Skip to content
This repository was archived by the owner on Apr 22, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions class/HPGrowingTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ - (void)setPlaceholderColor:(UIColor *)placeholderColor
- (void)textViewDidChange:(UITextView *)textView
{
[self refreshHeight];

// Tell the delegate that the text view changed
if ([delegate respondsToSelector:@selector(growingTextViewDidChange:)]) {
[delegate growingTextViewDidChange:self];
}
}

- (void)refreshHeight
Expand Down Expand Up @@ -340,10 +345,6 @@ - (void)refreshHeight
[self performSelector:@selector(resetScrollPositionForIOS7) withObject:nil afterDelay:0.1f];
}

// Tell the delegate that the text view changed
if ([delegate respondsToSelector:@selector(growingTextViewDidChange:)]) {
[delegate growingTextViewDidChange:self];
}
}

// Code from apple developer forum - @Steve Krulewitz, @Mark Marszal, @Eric Silverberg
Expand Down