开发者

UITextView Spelling correction is not working some times

开发者 https://www.devze.com 2023-01-10 19:59 出处:网络
I am implementing spelling correction in my UITextView 开发者_JS百科like this [txtView setAutocorrectionType:UITextAutocorrectionTypeYes];

I am implementing spelling correction in my UITextView 开发者_JS百科like this

[txtView setAutocorrectionType:UITextAutocorrectionTypeYes];
[txtView setAutocapitalizationType:UITextAutocapitalizationTypeWords];

It is working sometimes but, some times it is not working..

Please suggest me ho wi works.


Select your UITextView in Story Board. In Attribute Inspector under "Text View" section find "Correction" and "Spell Checking" and select "Yes" for both.

Don't worry if you don't want to allow Correction. You can switched off "Auto Correction" in your iPhone Device Keyboard Settings.

And make sure you have switched on Check Spelling in Settings -> General -> Keyboard -> Check Spelling on your iPhone Device.

Thanks, Mohsin

0

精彩评论

暂无评论...
验证码 换一张
取 消