Hide blinking caret
suggest changeTo 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;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents