Skip to content

Instantly share code, notes, and snippets.

@mjjimenez
Created October 24, 2013 06:53
Show Gist options
  • Save mjjimenez/7132489 to your computer and use it in GitHub Desktop.
Save mjjimenez/7132489 to your computer and use it in GitHub Desktop.
Remove cursor from UITextField
//Subclass UITextfield and Override the - (CGRect)caretRectForPosition:(UITextPosition *)position //method and return CGRectZero.
- (CGRect)caretRectForPosition:(UITextPosition *)position {
return CGRectZero;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment