问题
Setting the spellCheckingType
property of a UITextField
to UITextSpellCheckingTypeYes
doesn't override the user settings in Settings/General/Keyboard/Check Spelling.
That is, when Settings/General/Keyboard/Check Spelling is set to OFF, I cannot get my UITextField
to do spell checking, even when the UITextField's spellCheckingType
property is set to UITextSpellCheckingTypeYes
.
I presume this is by design. Has anybody found a way to override the user setting?
回答1:
If a user turns off spell checking, it means that user doesn't want spell checking. You can't override a user's preferences, nor should you.
来源:https://stackoverflow.com/questions/8272646/why-doesnt-uitextspellcheckingtypeyes-override-settings-general-keyboard-check