I have two uitextview in storyboard. What I need is when the user type something in one textview should show the exact same data in another textview, also when the text is below the textview area it should automatically scroll up showing the last line. This is my code in uitextview delegate
<code>
-(void)textViewDidChange:(UITextView *)textView
{
self.textview2.text = textview.text;
NSRange selection = self.textview2.selectedRange;
[self.textview2 scrollRangeToVisible:NSMakeRange([self.textview2.text length], 0)];];
}
</code>
This code works but the problem is everytime it scrolls from top to bottom which irritates user. Any solution will be appreciated?