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-
Disabling spell check will NOT update the UI of the red-line until the text itself is also updated. Simply setting the spellCheck to NO is not enough.
To force a UI update, set the spellcheck property to NO, then toggle the text blank then back, like so:
_textView.spellCheckingType = UITextSpellCheckingTypeNo;
NSString *currentText = _textView.text;
NSAttributedString *currentAttributedText = _textView.attributedText;
_textView.text = @"";
_textView.attributedText = [NSAttributedString new];
_textView.text = currentText;
if (currentAttributedText.length > 0) {
_textView.attributedText = currentAttributedText;
}