Reputation: 135
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.
Upvotes: 0
Views: 1258
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
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