|
I've been wracking my brain trying to get this to work for a day now and tried numerous methodologies from HWS forums, SO, and other YT vids and none work for me! I cannot even get to the point of testing the dismiss keyboard code as I cannot even get the Done button to successfully display on the keypad! Someone please save me, I'm at a loss.
|
|
Hi @a_sneaky_pete ! What do you mean by displaying Done button on keypad? Do you mean adding a button on virtual keyboard dispalyed by iOS itself? |
|
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets! Sponsor Hacking with Swift and reach the world's largest Swift community! |
|
As far as I know, there is no API provided by iOS to do that for number pads. Only for "full" keyboard type you can change it similar to
it can also serve the same purpose of dismissing, saving, etc... Or what I am missing here? |
|
Maybe try this for iPhone:
|
|
|
|
See below code for how I used the hideKeyboard(). Not certain where it would go in your code.
|
|
@ygeras, the Done button code is not working as expected when I run my app (i.e. there is no Done Button being displayed on the keyboard. |
|
|
|
|
|
|
|
Well basically this code is responsible for that.
and it works perfectly when I copy your code... try to clean up build folder maybe... cmd + shift + K |
|
Sorry, fnDevice() just checks if iPad or iPhone.
|
|
perhaps this will be of help ? |
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.