Questions tagged [custom-keyboard]

Relating to a custom keyboard created to override the default onscreen keyboard in a user interface. Also see [ios-app-extension] for iOS Custom Keyboard Extensions.

Use this tag for questions referring to overriding the default keyboard in a user interface. Also see for iOS Custom Keyboard Extensions.

Apple documentation: App Extension Programming Guide

712 questions
0
votes
1 answer

delete a character from a string Xcode

I am using the following code to add a character to a mutable string then put it into a textview from a custom keyboard - (IBAction) press:(id)sender { [[UIDevice currentDevice] playInputClick]; if (sender == AEE) { self.BACK.hidden…
user1114881
  • 731
  • 1
  • 12
  • 25
0
votes
1 answer

How to get System Keyboard Shortcuts programmatically

I just developed an iOS 8 Custom Keyboard and my users are requesting to be able to import the Keyboard Shortcuts in System Settings. Settings -> General -> Keyboard -> Shortcuts I thought it was impossible because all apps run in sandbox and does…
Evan Chu
  • 2,190
  • 2
  • 20
  • 23
0
votes
2 answers

iOS swift custom keyboard no sound and delay

I´m testing the keyboard extension with new language swift on iOS, but I can´t play a sound for keyPressed event, and there is a delay, about 10 seconds when I click the key. This is my code: @IBAction func keyPressed(button: UIButton) { var…
jezuz
  • 413
  • 2
  • 5
  • 13
0
votes
3 answers

How to determine device orientation in Custom Keyboard

I am building a custom keyboard for iOS8. I want my keyboard to support portrait and landscape modes. How do I determine the device orientation? Getting device orientation doesn't currently work well in custom keyboards.
Bis
  • 713
  • 1
  • 5
  • 7
0
votes
1 answer

iOS8 keyboard extension and "Background Activity"

I'm currently beta testing a keyboard for iOS8, and my users have reported that the keyboard shows up as a "Background Activity" in the battery usage section. What could be the cause of it? When the keyboard is not in use, I see 0% cpu usage when…
kamziro
  • 7,882
  • 9
  • 55
  • 78
0
votes
0 answers

GCD doesn't work in custom keyboard

please can anyone help me? I have next problem. I created custom keyboard in xcode and want to use the GCD to load gifs async in array. But when i do this my app crash. My code @implementation KeyboardViewController in viewDidLoad…
0
votes
1 answer

iOS custom keyboard - preserve state between appearances

I'm having some performance problems with a custom keyboard I'm working on. Loading all the words in the spell correction tree takes quite a bit of time. This seems to be done each time the keyboard appears - is there any way to preserve the state…
Malakim
  • 1,333
  • 2
  • 18
  • 34
0
votes
1 answer

Opening external app from custom keyboard ios 8

I wanted to know how I can open an external app from a custom keyboard in iOS 8? is it by example possible to open Facebook, or post a Facebook message from a custom keyboard, if yes, how can I achieve this? Thank you, joe
joe
  • 1
  • 1
  • 2
0
votes
1 answer

Why is textInput.keyboardType nil in textDidChange?

I'm developing a custom keyboard in Swift and I would like to know when the keyboard type changes (to a number or decimal keyboard type for example). I believe this should be done in either textDidChange or textWillChange. This method receives a…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

How to put Image in Custom Keyboard?

I am a iOS application developer. I am now working with iOS8 custom keyboard. I have created a custom keyboard with custom view. I can put their button and view. I am unable to put image or animated image(GIF) over there. Can any one please help me…
Bis
  • 713
  • 1
  • 5
  • 7
0
votes
3 answers

How to get host's app object from app extension?

I have a custom keyboard extension. And I need to know when my keyboard is shown/hidden. I read this article, this block: - (void)registerForKeyboardNotifications { [[NSNotificationCenter defaultCenter] addObserver:self …
veitr
  • 111
  • 10
0
votes
1 answer

Stop receiving when keyboard is hidden

I have a custom keyboard extension and its containing app. After launching, containing app send to my extension a number every 2 seconds. I catch it and output to the text field. But I have a problem. When extension keyboard appears on a screen - it…
veitr
  • 111
  • 10
0
votes
1 answer

Create a Containing app for ios 8 keyboard with multiple colors

Currently I have many different XCode projects that are each the same custom ios8 keyboard and the only difference between them is that they each are a different color. The question that I have is how would I combine these keyboards into a single…
0
votes
1 answer

iOS8 Keyboard Extension get current context

how can I get the current text input state to toggle between email field, browser url field or text field. I want to display @ signs, open button or enter button depending on the current state. I searches and tried for days but could not find…
zeiteisen
  • 7,078
  • 5
  • 50
  • 68
0
votes
1 answer

Cannot change Enter Key label for Custom keyboard in Android

I'm designing a custom keyboard for Android. I want to have my custom label for ENTER key for some fields in my application. I used sample SoftKeyboard project for developing my keyboard. What I tried so far: 1- In one of my activities I have an…
Hamid
  • 2,852
  • 1
  • 28
  • 45