UITextView in iOS7 has been really weird. As you type and are entering the last line of your UITextView, the scroll view doesn\'t scroll to the bottom like it should and it
The solution I found here was to add a one line fix after you create a UITextView:
self.textview.layoutManager.allowsNonContiguousLayout = NO;
This one line fixed three issues I had creating a UITextView-based code editor with syntax highlighting on iOS7:
Note, I did resize the whole UITextView when the keyboard is shown/hidden.