The problem I have is the same as this guy : http://stackoverflow.com/questions/24453108/smooth-uitextview-auto-scroll-to-bottom-of-frame-solved
Whatever code I use to scroll to the bottom of a textview starts from the top and scrolls to the bottom rather than scroll from where the uitextview currently sits.
When I try the solution of this guy, which was :
I get a bug where it seems that the 'textview.scrollEnabled' never gets back to YES, so the scroll will simply never work.
I either have that weird scrolling where it gets back to top then to bottom or the other bug where the scrolling enabled never gets back to YES.
help?
Whatever code I use to scroll to the bottom of a textview starts from the top and scrolls to the bottom rather than scroll from where the uitextview currently sits.
When I try the solution of this guy, which was :
Code:
textview.scrollEnabled= NO;
textview.text = [textview.text stringByAppendingString:createdString];
textview.scrollEnabled= YES;
[textview scrollRangeToVisible:textview.selectedRange];
I get a bug where it seems that the 'textview.scrollEnabled' never gets back to YES, so the scroll will simply never work.
I either have that weird scrolling where it gets back to top then to bottom or the other bug where the scrolling enabled never gets back to YES.
help?
Last edited by a moderator: