Jose Fermin
Jose Fermin

Reputation: 135

Disable iOS keyboard from displaying

I'm doing an iPad app. I'm developing a custom keyboard. However, when I click on the textfield the default keyboard pops up. I want to prevent that disabling the keyboard.

I saw some similar posts here where they put a dummy View on top, or they disable the editing, but that won't do what I want.

enter image description here

Upvotes: 0

Views: 1258

Answers (2)

Francesco Destino
Francesco Destino

Reputation: 349

Using this you can disable normal keyboard

textField.inputView = UIView()

so putting your custom view can make the work

textField.inputView = YourKeyboard()

EDIT 2

Try to put this

youtTextField.inputAssistantItem.leadingBarButtonGroups.removeAll()
yourTextField.inputAssistantItem.trailingBarButtonGroups.removeAll()

Upvotes: 1

Cedan Misquith
Cedan Misquith

Reputation: 1154

This might help you solve your problem.

iOS hide default keyboard and open custom keyboard

Essentially you need to hide the default keyboard and then present your custom keyboard.

Upvotes: 1

Related Questions