UITextView contentSize changes and NSLayoutManager in iOS7
The problem: UITextView silently changes it's contentSize in some situations. The simplest case textView with large text and keyboard. Just add UITextView outlet and set - viewDidLoad as: - (void)viewDidLoad { [super viewDidLoad]; // expand default "Lorem..." _textView.text = [NSString stringWithFormat:@"1%@\n\n2%@\n\n3%@\n\n4%@\n\n5", _textView.text, _textView.text, _textView.text, _textView.text]; _textView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; _textView.contentInset = UIEdgeInsetsMake(0, 0, 216, 0); } Now showing and hiding keyboard will cause text jumps in some