UITextView with contentInset: content jumps while typing

I have a UITextView for letting the user enter multi-line texts. When the text exceeds the size of the TextView it needs to start scrolling. So far so good.


When the onscreen keyboard pops up I set the height of the keyboard as a bottom-contentInset to the TextView to mitigate the issue of the keyboard overlapping the TextView. However, when the contentInset is bigger than the height of the TextView's frame its content starts jumping when trying to enter text. The text-entry caret jumps out of view and with every keystroke de entire text content jumps up and down, essentially making text entry impossible.


This can be reproduced without any code, so it's not a code bug but a behavior issue:


- create a view with a viewcontroller, disable autolayout.

- put a UITextView on the View (you can leave the lorem-ipsum text in)

- make the UITextView height 400

- add a contentInset of 500 to the bottom of the UITextView

- run on a device or in the simulator


As soon as you touch the UITextView to give it focus to start typing everything jumps up and the text-entry cursor/caret moves out of view and starts jumping erratically.


What am I doing wrong, or how can this be avoided?