Why doesn't UITextSpellCheckingTypeYes override Settings/General/Keyboard/Check Spelling?

若如初见. 提交于 2019-12-10 21:20:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!