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
}

Objective-C

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

Feedback about page:

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



Table Of Contents