Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 - How to hide suggestion list above keyboard?

Is there any way to hide suggestions list above keyboard? I couldn't find any solution in documentation.

like image 331
Khawar Avatar asked Jun 10 '14 11:06

Khawar


People also ask

How do I get rid of text suggestion bar?

Once the keyboard is visible, tap on the three dots and go to Settings. Once you're in Settings, go to Text Correction. The first option on the list will be the Show suggestion stip. It's as simple as toggling it off.

How do I get rid of quick type on my iPhone?

To permanently disable QuickType suggestions, you can simply long press on the keyboard selector icon and slide the "Predictive" toggle off (thanks to Nick for the tip.) Alternatively, you can make a trip into your iPhone or iPad's Settings app.


1 Answers

Yes there is. You have to disable autocorrection on the text field/text/any other class that conforms to the UITextInputTraits protocol, which can be done through the autocorrectionType property.

textField.autocorrectionType = .no 

Additionally, if you're interested, the following are the only UIKeyboardTypes that don't have suggestions by default.

  • DecimalPad
  • NumberPad
  • PhonePad
like image 177
Mick MacCallum Avatar answered Sep 19 '22 01:09

Mick MacCallum