1

Swift...

So I've got an existing app and I'm working on its appearance. The current task is customising the decimal pad that pops up when the user hits a textField.

I've looked around on how to make it but it always seems that you have to go into the iPhone/ipad settings and add the custom keyboard.

eg. This StackOverFlow Question and they all seem to point to this same tutorial.. iOS 8: Creating a Custom Keyboard

My problem is that I don't want the user to have to go into settings. So the question is....IS THIS POSSIBLE?

The following pic is what I want to use. I have made this in an XIB file through adding a target keyboard which makes the new folder with KeyboardViewController.swift , info.plist and NumPad.xib. Though i think I'm on the wrong track, can someone point me the right way please.

Also anyone know the exact dimensions this view should be.. assuming what I'm asking is in fact possible. Let me know if I'm not being clear enough! NumPad.xib(pic)

Many many thanks, Steve

SOLUTION: Thanks to Andrea for correcting my search keywords. It led me to this Stack Question which hopefully sends some others to the correct end of the internet that have mistakes custom keyboard with custom input views!

Community
  • 1
  • 1
Steve
  • 4,372
  • 26
  • 37

1 Answers1

1

Sure it is possible without going into settings, but they are called custom input views.
You should look into inputViews here what Apple says about them Custom views for data input.
Basically when the user press a text field instead of loading the usual keyboard it loads an inputView that you specify, pay attention that custom keyboard term is misleading. If you google for tutorial you'll find most probably link like the ones that you found.
For a practical example check this tutorial or this, is a little bit old, but the principle are still the same

Andrea
  • 26,120
  • 10
  • 85
  • 131
  • Thats great thanks heaps, i thought that might've been the case, searching for the wrong thing! – Steve Feb 02 '16 at 08:35