Disable auto correction of UITextField

ebaccount picture ebaccount · May 6, 2009 · Viewed 32.7k times · Source

When I try to edit texts in my iPhone application (UITextfield), it auto-corrects my input.

Could you let me know how can I disable this?

Answer

George Armhold picture George Armhold · May 6, 2009
UITextField* f = [[UITextField alloc] init];
f.autocorrectionType = UITextAutocorrectionTypeNo;