My code worked fine under iOS 6, but under iOS 7 I canโt get my UITextView to enlarge the screen of the device minus the keyboard (in other words, when the keyboard is up, UITextView will still be in full screen mode, but not under the keyboard).
Firstly, when I put a UITextView in my view controller (which is built into the navigation controller), it should also be below the navigation bar, otherwise it will start too far down.
From there, I tried all of these examples:
self.textView.contentInset = UIEdgeInsetsMake(0, 0, 230, 0); self.textView.scrollIndicatorInsets = UIEdgeInsetsMake(0, 0, 230, 0); self.textView.textContainerInset = UIEdgeInsetsMake(0, 0, 230, 0);
Where in each keyboard text is still visible at some points. I also tried to set a height limit and manipulate the constant, but no luck.
self.height.constant = self.height.constant - 240.0;
(Where height is the output of the constraint).
All of them were checked before and after the call [self.textField becomeFirstResponder]; .
How can i do this? I just want a full UITextView screen where the carriage thing will not go under the keyboard, but such basic functionality seems crazy under iOS 7.
ios objective-c ios7 uitextview uiscrollview
Doug smith
source share