views:

738

answers:

2

Hello All,

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?

Thanks.

+7  A: 

You can use the UITextInputTraits protocol to achieve this:

myInput.autoCorrectionType = UITextAutocorrectionTypeNo;

See here for more details.

Jonas
+1  A: 
UITextField* f = [[UITextField alloc] init];
f.autocorrectionType = UITextAutocorrectionTypeNo;
Caffeine Coma
Thanks guys, it worked.
ebaccount