I am using a UITextField
and have turned off the normal auto correction features but I need Japanese keyboards to not show the kanji auto-complete views that appear above the keyboard when typing. I am trying to quiz the user and so it is important that this feature is disabled.
Any ideas?
You should be able to hide the predicted words by setting the autocorrectionType like this:
self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
This can also be done in storyboard -> UITextField --> Text Input Traits --> Correction = No
Probably this is a long time for the answer, however for the completion purpose, you can override shouldChangeCharactersInRange
method and return NO from this method.
I had accidentally done this, and my auto-completion had stopped. Seems that my problem was a solution to someone else :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.