Hide blinking caret

suggest change

To hide the blinking caret, you need to override caretRectForPosition of a UITextField and return CGRectZero.

Swift 3

override func caretRect(for position: UITextPosition) -> CGRect {
    return CGRect.zero


- (CGRect) caretRectForPosition:(UITextPosition*) position{
return CGRectZero;

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents