Search code examples
iphoneios4uitextview

UITextView issue - caret jumps upwards


I have a UIViewController with a UITextView as its subview. Its as simple a hierarchy as that. When I tap inside the textview, the caret(cursor) jumps upwards by 10 px as if the return key was hit magically and whatever I type is there but gives a clipped look. What could be the reason? Any fix?


Solution

  • textView.contentInset = UIEdgeInsetsZero;
    

    Solves the caret jump issue.