Questions tagged [uiinputviewcontroller]
62 questions
1
vote
3 answers
Catch rotation event into UIInputViewController
I'm developing a custom Keyboard and I'm trying to catch a device rotation event.
I've already tried :
override func viewDidLayoutSubviews() {
print("Foo")
}
and
override func viewWillLayoutSubviews() {
print(" Bar")
}
and
override func…

StrawHara
- 1,301
- 19
- 33
1
vote
1 answer
iOS 9 UIInputViewController dismissKeyboard
I have a custom UIInputViewController, let's call it MyInputViewController. I set the a text field's input view to the view of a singleton instance of my input controller. Inserting, deleting and moving the cursor works fine however when I call…

borchero
- 5,562
- 8
- 46
- 72
1
vote
2 answers
Dismiss iOS keyboard extension when app running it is minimised
I am working on a iOS keyboard extension. It works fine, but the run-time memory used by it gets almost double if I minimize any current app and open the keyboard in another app.
To explain it better, let me give you an example.
Suppose I opened the…

Sibir
- 313
- 2
- 6
- 20
1
vote
1 answer
iOS Custom keyboard can't return focus to app's textfield
I'm working on a custom keyboard for iOS which will have its own search field (similarly implemented by PopKey).
My keyboard's textfield is able to take the focus with becomeFirstResponder and I'm able to give it up by using resignFirstResponder.…

user339946
- 5,961
- 9
- 52
- 97
1
vote
1 answer
How to get the current word being typed?
I am making a custom keyboard extension for iOS 8 and am unsuccessful at trying to reflect the current word being typed on a UILabel sitting on top of the keyboard (think autocorrect). So far the code I wrote reflects the sentence before the cursor…

cyril
- 3,020
- 6
- 36
- 61
1
vote
1 answer
Custom keyboard iOS8 non english characters
I'm trying to create a burmese language keyboard for iOS8. And i can not figure out how to let iOS know about the characters. I've my custom keyboard displayed in safari, but when i try to write, it shows as "?" only. I've tried unicodes so far. and…

Akshit Zaveri
- 4,166
- 6
- 30
- 59
1
vote
1 answer
How do i add an inputAccessoryView to a Custom Keyboard (ios Extension)
I've created a custom keyboard programmatically. There is no Storyboard. I'd like to add an Accessory View above as per Apple's own keyboard. Can't figure out how to do this in swift inside my Keyboard file within my app.
I tried (row0 is a…

jasonjasonfried
- 25
- 6
1
vote
0 answers
NSNotification in a UIInputViewController subclass
I'm writing a custom keyboard extension, and although I am registering as an observer of the keyboard hide / show notifications, my breakpoints never hit and my log statements never print. Is there something different that happens with…

jeffctown
- 176
- 1
- 1
- 8
1
vote
1 answer
Different .xib for different screen sizes and appearance? - iOS 8 Keyboard Extension
My problem:
I'm trying to develop a custom keyboard for iOS 8. I got the buttons working and all that, but I would like to know how to do the different setups whether it is an iPad or an iPhone, and how to change the appearance when the keyboard…

ifraaank
- 122
- 2
- 13
1
vote
2 answers
iOS force App to use custom keyboard
I am working on the app which has a one text-field which should accept only numbers so I created one custom keyboard which has only [0-9] as input to accept.To use this custom keyboard one has to go setting-->keyboards then accept this and then…

user3226440
- 559
- 1
- 8
- 23
0
votes
0 answers
Adding UIDatePicker a non-Date option
I am trying to add native UIDatePicker a String option which which will represent the option for Ongoing, like job start-end intervals. However could not manage to find something.
I tried to create a custom view with UIButton and UIDatePicker and…

Faruk
- 2,269
- 31
- 42
0
votes
1 answer
How to make a custom keyboard using Objective-C that can type images
I want to make a custom keyboard that types custom emojis instead of just letters and numbers.
The following code helps me type just a letter or number
[self.textDocumentProxy insertText:[key currentTitle]];
but if I change "currentTitle" to…

VV2020
- 1
- 1
0
votes
1 answer
Can't use UICollectionView in UIInputViewController for keyboard extension
I have created a UICollectionView subclass which I want to use to provide the keys in a UIInputViewController as a keyboard extension. But I have found that attempting to instantiate a UICollectionView will cause the keyboard to crash whenever the…

mashers
- 1,009
- 7
- 22
0
votes
2 answers
UIInputViewController (Custom Keyboard) - UIButton action not being triggered - Why, Oh Why?
I'm sure this is ridiculously easy, but I cannot get a simple example, with a UIInputViewController, to work. I've got two buttons, they show up, but tapping on them has no effect. In Googling, I found several questions exactly like this -- with no…

Michael Rogers
- 1,318
- 9
- 22
0
votes
1 answer
UIInputViewController can't response action that come from UIButton before iOS10
I build a custom keyboard by codes. On the self.inputView, add some buttons to input custom content. the core codes as follows:
[self.wordsSenders enumerateObjectsUsingBlock:^(UIButton * _Nonnull cell, NSUInteger idx, BOOL * _Nonnull stop) {
…

ZeroOnet
- 15
- 7