Hi there, I’ve created a username textfield that opens the keyboard by default. My question is how to allow the user to close the keyboard when done. I put a OK button under the textfield but this one gets covered by the default keyboard and so after entering the name there’s no way for the user to go back.
I’m new to unity, but a quick hack for this was to go into xcode and edit the “/Classes/UI/keyboard.mm” file. playing around with the parameters in these lines did the trick.
In the “/Classes/UI/keyboard.mm” file create a new baritem in the init like:
UIBarButtonItem* okItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone target:self action:@selector(textInputDone:)];