Created
September 22, 2013 01:58
-
-
Save NZKoz/6655973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) textViewDidChange:(UITextView *)textView { | |
[self updateBarButtonItemState]; | |
[self _showTextViewCaretPosition:textView]; | |
} | |
- (void)_showTextViewCaretPosition:(UITextView *)textView { | |
CGRect caretRect = [textView caretRectForPosition:self.textView.selectedTextRange.end]; | |
[self.textView scrollRectToVisible:caretRect animated:NO]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment