If you call [self.textView slk_insertTextAtCaretRange:myText]; while the caret position is at the end, there is already sufficient number of lines in the textView to exceed the max limit, it is pushed to a new line, and the textView is the first responder, it will auto scroll to the bottom to show the text that was just inserted as you would expect. But if the textView is not the first responder, it will still insert at the end, but it won't auto scroll the textView so you can't see the text you just inserted. It should always auto scroll to show the just inserted text. :)
If you call
[self.textView slk_insertTextAtCaretRange:myText];
while the caret position is at the end, there is already sufficient number of lines in thetextView
to exceed the max limit, it is pushed to a new line, and thetextView
is the first responder, it will auto scroll to the bottom to show the text that was just inserted as you would expect. But if thetextView
is not the first responder, it will still insert at the end, but it won't auto scroll thetextView
so you can't see the text you just inserted. It should always auto scroll to show the just inserted text. :)