Is there a way to disable the smart keyboard panel in ios 8?

So, we have a predictive bar in iOS 8, but it covers my input field above the keyboard. I found only one solution to hide it by setting the textView correction to NO. But it also disables the correction, which is not good. All offers? Are there any api for this stuff from Apple?

+6
source share
3 answers

Setting autocorrectionType to UITextAutocorrectionTypeNo in the UITextAutocorrectionTypeNo in question (or correcting NO in IB) disables auto-correction, as well as smart text string in iOS 8. It seems that there is no way to disable only the predictive bar.

+9
source

You can do this from the user interface. When you select a text field element, change the Correction option to None.

enter image description here

+2
source
 - (void)textFieldDidBeginEditing:(UITextField *)textField { UITextInputAssistantItem* item = [textField inputAssistantItem]; item.leadingBarButtonGroups = @[]; item.trailingBarButtonGroups = @[]; } 

try it

+1
source

Source: https://habr.com/ru/post/975710/


All Articles