UITextAutocorrectionTypeNo didn\'t work for me.
I\'m working on a crossword app for the iPhone. The questions are in UITextViews and I use UITextFields for the User-
One potentially-helpful tip following from Engin Kurutepe's answer:
If you have subclassed UITextView, you can override the UITextInputTraits in the subclass implementation of becomeFirstResponder, something like this:
-(BOOL)becomeFirstResponder {
self.spellCheckingType = UITextSpellCheckingTypeNo;
self.autocorrectionType = UITextAutocorrectionTypeNo;
self.autocapitalizationType = UITextAutocapitalizationTypeNone;
return [super becomeFirstResponder];
}
There is then no need to explicitly resign/becomeFirstResponder around your trait changes.