I searched high and low and did not seem to find an answer. The closest I've seen is here: UITextView cursor under frame when changing frame
Sorry, there are no screenshots since I (almost) have no reputation, but it looks like a related SO record.
When I run the application on iOS6, everything works fine (the content scrolls with the cursor to save it on the screen), but on iOS7 the cursor goes one line beyond the UITextView. I tried adding UIEdgeInsets to move the content, but when the user actively enters text, he simply adds a new line until the cursor is below the end of the text view.
My layout consists of a shortcut (headerText) with a UITextView (textView) below it. This view is shown in the tab bar. A keyboard addition is added, but the height is automatically calculated to the height of the keyboard before calling the function.
Here is the function I use to resize my views invoked from the keyboard show / hide delegate, rotate, initial layout, etc.:
-(void)resizeViewsWithKbdHeight:(float)kbHeight {
I am trying to support iOS5, so there is no AutoLayout.
Perhaps I am incredibly naive in what I do.
Thanks in advance!
ios ios7 uitextview uiedgeinsets
jordan.roskelley
source share