Cannot enable iOS8 Custom Keyboard - ios

I'm trying to design a custom keyboard for iOS 8. Here are my development steps:
1. Created new project (Single view)
2. Created a new target: File > New > Target, and in the iOS template group chose the Custom Keyboard template.
Then I tried to enable the keyboard based on the documentation steps, which are:
1. Run the app
2. In iOS Simulator, press home button (Command+Shift+H)
3. Go to Settings > General > Keyboard > Keyboards.
4. Tap Add New Keyboard.
5. In the Purchased Keyboards group, tap the name of your new keyboard. A modal view appears with a switch to enable your keyboard.
6. Tap the switch to enable your keyboard. A warning alert appears.
7. In the warning alert, tap Add Keyboard to finish enabling your new keyboard. Then tap Done.
My problem is in step 5. The modal view does not show a switch to activate the keyboard, it shows an empty view like bellow:
I clicked on Done button and it shows my Custom keyboard in activated list:
But when I want to use this keyboard, for example in spotlight, it won't show my keyboard

Clicking the done button will activate the keyboard. There are some definite bugs in those menus.
To change keyboards, you can also try just tapping on the button to change keyboard, rather than holding it like you were in the last screenshot.
Also, it looks like you have the language for that keyboard set as persian, and my guess would be that it is not appearing because your system language is not persian (or the text field you are typing in doesn't support persian).
I wouldn't be surprised if there are other bugs in the simulator that would affect this. I'm glad to hear you were able to get it working.

After you click done, it should install the keyboard, even if you don't see the list in the settings table.
About the keyboard not showing up - you need to kill the app before running a new keyboard. it's a known issue on the simulator.
good luck!

Related

TextField.inputView opens custom keyboard in app

I am building keyboard app, and I am wondering if there is a possibility to open my custom keyboard when user pressing on textField within my app. Keyboard is built using storyboard.
I know that I can force textField to open number Pad, Phone pad and other Apple's keyboard options but can I open my own keyboard without going to settings and adding my 3rd party keyboard.
Thanks in advance.
No, it's not possible, You have to add keyboard once from settings and then automatically your keyboard will pop up.
if you really want your own keyboard without adding settings then you need to develop your own custom inputView.
Additional notes I have just go through better approach which might be helpful for you check here and about your second question to detect keyboard please visit here
Note: Apple will not allow you to forcefully active your own keyboard at anycast because of its policy violation.

Disable keyboard shortcuts bar for ipad custom iOS keyboard (swift3)

I've written a custom iOS keyboard that works fine. On iPads, when I switch between keyboards, my custom keyboard renders and then the shortcut bar gets added to the top (if the shortcuts bar option is turned on in settings - if it's not turned on, I have no issue). Because it's happening in 2 steps the keyboad appears to "bounce". My keyboard takes up less screen real-estate than the default iOS keybard, so it drops down. Then it pops back up as it renders the shortcuts bar.
Is there a way to either override the global setting and force the shortcuts bar off/hidden for my keyboard? Alternative, can I force it on and make it render at the same time as my keyboard is drawn?

How to launch Appium test with a certain language keyboard on iOS simulator

I am running tests which require having different keyboards open while typing throughout the app. I want to be able to run a test that perhaps launches a script that changes the default language before the test begins. I know you can run scripts which do similar things to change the state of the simulator however I cannot find where the keyboard settings are located.
I spent some time trying to figure this one out.
Here's what I've got for you:
To use different keyboards, you need to tell manually the Simulator which languages you plan on using when you type.
From then on, whenever the keyboard is up, there will be a UIAKey named Next Keyboard that looks like a Globe.
Do a long press on it to get an action sheet open with all the different languages, or click it once to cycle through the keyboards.
Step-by-step:
Go into System Preferences on the simulator
Click on General
Click on Keyboard
Click on Keyboards
Click on Add New Keyboard...
Select (Language)
Close the Simulator
Open your app
Click on a Textfield
See the Globe Button
Click the Globe Button
Keyboard should now be in (Language)

iOS guided access keyboard bug

I'm development an app through titanium. When I was running it on actual iPad, I got a bug that keyboard cannot close if guided access was enabled.
Scenario:
Guided Access is on in settings
Focus on a TextField, keyboard shows up
Triple click on home button, start Guided Access. (With Password). Note, the keyboard is still up for textfield.
Click "Resume" button, return back to app.
Now, if you try to dismiss keyboard, it just stuck there. And keyboard no response until next TextField or TextArea.
And this always happens. I'm not sure if this is a bug from Titanium or iOS itself. I'm trying to replicate by native objective c code.
Does anyone have clue how to fix this?
Thanks
UPDATES:
I've tried to replicate by native SDK. Nothing happened. So I guess this is a bug only for Titanium.
Finally address the problem, when you open the number pad for guided access then go back to app, it will cause the textfield lose focus. So, if user tap/click the textField, then there will be no problem.
And there is another scenario: There are two window, A and B. B has a textField, and I've set it focus when it opened. In Window A, I triple click home button and open the number pad to enter password. Go back to app, open window B. Now since I've programmatically focus the textfield, so nobody click the textField. Now if you try to dismiss the keyboard without touch/click the textfield, you will see the same bug happened before. While if you click the textField, manually re-focus it, there will be no problem.

iOS keyboard no longer shows after upgrading environment

i hadn't touched the code of my iOS app in a while, and since then the latest iOS version became 4.3.2. i upgraded my environment in both XCode and on my device. after compiling my application and running it in both the simulator and on device, the keyboard no longer shows up when selecting editable items inside a webview.
my app's first screen is an OAuth dialog, and as such, I can't get past it without the keyboard, so i tried embedding an edit box in the same parent view as the webview, and it worked! except, the dismiss keyboard button did not work - the keyboard stayed visible even when i pressed it. touching away from the edit box (thus forcing it to resign first responder status) did make the keyboard go away.
i figured it would be something in my webview delegate code, but didn't see anything there that could stop a keyboard from showing.
in the XIB that sets up the webview, i checked that user interaction is enabled, so that's not the problem either. when i touch an edit box in the webview, the edit box enters editing mode - the keyboard just doesn't show.

Resources