UITextView Spelling correction is not working some times
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
精彩评论