IOS 5 - Is there a way to disable autocomplete in a UITextView, but keep spell checking (red underline)?

It seems that setting autocorrectionType enables or disables both (1) auto-complete words as you type, and (2) red underline when missing a word.

In the Settings app, there are separate sliders for Auto Correction and Spell Check.

I am wondering if there is any way (possibly with a workaround) for spelling errors to be emphasized in a UITextView, rather than programmed using Objective-C?

Any help is much appreciated!

+6
source share
1 answer

There is also a spellCheckingType property:

[textView setAutocorrectionType:UITextAutocorrectionTypeNo]; [textView setSpellCheckingType:UITextSpellCheckingTypeYes]; 

I tried this and it will not auto-correct, but it leaves red lines and sentences.

+17
source

Source: https://habr.com/ru/post/922086/


All Articles