UITextViewでの固定長の高さとカーソルの挙動

どちらもキャレットを表示するという処理だけど動作が違うので面倒なので同時に実行。
上手くいったよマンマー!

- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{
    CGRect caretRect = [textView caretRectForPosition:textView.selectedTextRange.start];
    [textView scrollRangeToVisible:textView.selectedRange];
    [textView scrollRectToVisible:caretRect animated:NO];

    return YES;
}

途中まで可変である程度で固定にするUITextViewでframeはAutoLayout仕様での実験。
さて次はペーストに対する処理を施すか…