Question

I've a custom keyboard view on my app positioned at the bottom of my screen, it's based on Fabrizio Prosperi's FPNumberPadView.

I also have a couple of UITextFields, I want this keyboard to ALWAYS be on screen, whether a textfield has the focus or not.

that is working, BUT, regardless of the position I initially assign to the keyboard on the screen, as soon as I tap on the first textfield (and becomes the first responder), it disappears and immediately slides into the screen as the regular system keyboard would.

This is what I want to get rid of. I want the keyboard at the bottom from the get go and as I tap the textfields they receive the characters from this custom keyboard.

Any tips / link / help on how to accomplish this?

thanks in advance

Was it helpful?

Solution

First of all, I don't think it's a good idea to have your keyboard on the screen all the time. I'm pretty sure it's against Apple guidelines.

In order to achieve it anyway, a solution would be to have an invisible (hidden and/or out of the view) textfield that becomes a "firstresponder" after one of the other textfields resigns its firstresponder role.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top