I have an unusual problem. First I have a Nav Controller, and as one page, I have a view controller with a top bar for the back button. I added uiview and uitextview. Then I make all the necessary restrictions after starting up and see the top addition for the text in the text representation of about ~ 60 pixels. And I really don't know how to remove it. I already tried 1)
textViewUserInput.contentInset = UIEdgeInsetsMake(-50, 5, 5, 5);
it works, but the -50 value for the top insert is not suitable for different devices and orientations
2)
textViewUserInput.textContainerInset = UIEdgeInsetsZero; textViewUserInput.textContainer.lineFragmentPadding = 0;
nothing changes
source share