how to use system globe key and delete key in custom keyboard? - ios

I'm trying to make a custom keyboard.
I saw the guide in apple developer said, "Your custom keyboard must also provide a way to switch to another keyboard".
So, I think that it's a good idea to use system globe key.
But, I cant find the methord or property to show them.
Please help me, thank you!

I do not believe those are available to you. You would have to make your own buttons and then make IBActions that correlate to whichever option you are trying to do for the corresponding button:
Globe (next keyboard) - [self advanceToNextInputMode];
Delete - [self.textDocumentProxy deleteBackward];

Related

Swift iOS Remove microphone key from keyboard in code

I want to remove microphone key from keyboard.But in code.
Can you help me?
Unfortunately, there seems to be no simple command to do so. Best way is to create custom keyboard and edit yourself.
Check this cocopod for your app
Custom keyboard
According to your question. Here is the link
UITextInputCurrentInputModeDidChangeNotification

iOS App: Possible to make keyboard recommendations?

In an iOS application, is it possible to make own keyboard suggestions if the user taps a specific UITextField? The suggestion should only appear if the UITextField is empty.
By keyboard recommendations I mean the Predictive Keyboard:
Swift code is preferred.
Thanks!
I don't think you can provide suggestions to the actual keyboard so they get presented, but what you can do is write your own inputAccessoryView to be there instead, and handle the tapping/appending of text yourself, and possibly disable the completion from the keyboard. This is essentially what the messaging apps do to present a bar with buttons to add photos and attachments when writing.
Since you don't mention what you're trying to accomplish I don't know if this would make sense. Let me know if you want me to elaborate on how to do this in code.

Customising the Decimal pad in my app

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!
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

iOS 8 - UIKeyboard hide auto-correct ribbon

I'm looking to programmatically minimize the auto-correct ribbon found in iOS 8. Minimize meaning achieving the same effect as tapping and sliding the auto-correct ribbon down to hide/minimize it. I know how to remove it completely with _myTextView.autocorrectionType = UITextAutocorrectionTypeNo; - but this does not give the option to pull it back up if the user still wants it.
I haven't been able to find much about it. When I search for ...
hide autocorrect ribbon ios 8 sdk
Not much is returned of value. I've tried variations of that search but to no avail. Does anyone know if it's possible to do this?
Thanks in advance.
Currently i said no. Apple likes to give those kind of setting to the user only; not for developers. If you really need it off, you would have to design/create a Custom Keyboard.

Use stock keyboard as template for custom iOS 8 keyboard

I was wondering if it is possible to get the stock Apple keyboard design as a file to make a own custom keyboard with only slight changes to the original one.
I would like to only change one Key and was hoping that I don't have to build the whole design myself and try to imitate the original design.
Thanks in advance
I built a custom keyboard with the same look as the system keyboard (except it has only one "letter" key!): https://github.com/acoomans/ACKeyboard
I'm sure you can start from there and adapt it to your need. Good luck!
There is another custom keyboard with all the keys here. Looks like the might be a bit hacked together but could be another good place to start. https://github.com/archagon/tasty-imitation-keyboard

Resources