We’ve been having a strange issue with a gap appearing between input fields and the text entry area on an app we’re developing. Occurs at random, and only about 2% of the time. We think it only started after updated from 4.6 to 5.1, but as it is occasional and random we don’t know for sure.
After some investigation, the gap is a result of having the status bar shown (Player Settings > Resolution and Presentation > Status Bar). The gap is the size of the status bar. I’ll enter enter this as a bug (Unity could at least hide the status bar while the keyboard is open).
This problem is due to the translucent status bar. I think that it is probably a bug.
Translucent status bar should be calculated as the height 0, because it have full overlap with area of content.
However, the actual build results is…
As a result, the position of the editView.frame is deviated just the height of the status bar.
If you are using a translucent status bar, it is possible to erase the strange gap by editing the Keyboard.mm as follows.