Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable text-autocorrection for an UITextField or keyboard? [duplicate]

I have a case where autocorrection NEVER makes any sense. It's incredibly annoying. Can I disable it for the UITextField?

like image 259
openfrog Avatar asked Sep 27 '10 09:09

openfrog


1 Answers

With Interface Builder you can disable "Correction" in the "Attributes" Tab in Inspector.

Correction

Programmaticaly you can use

UITextField* textfield = [[UITextField alloc] init];
textfield.autocorrectionType = UITextAutocorrectionTypeNo;
like image 170
audience Avatar answered Nov 10 '22 23:11

audience