问题
I have a case where autocorrection NEVER makes any sense. It's incredibly annoying. Can I disable it for the UITextField?
回答1:
With Interface Builder you can disable "Correction" in the "Attributes" Tab in Inspector.
Programmaticaly you can use
UITextField* textfield = [[UITextField alloc] init];
textfield.autocorrectionType = UITextAutocorrectionTypeNo;
来源:https://stackoverflow.com/questions/3802389/how-to-disable-text-autocorrection-for-an-uitextfield-or-keyboard