uiinputviewcontroller

Text field stays under the custom keyboard in UIWebView for iOS 8

我只是一个虾纸丫 提交于 2019-12-25 02:34:47
问题 I'm creating a web App for iOS and I have a custom keyboard. When I use the default keyboard, it immediately shows the keyboard and the text field is above the keyboard. I would have the same result if I change the keyboard to my custom keyboard. But the problem is for the time that I gives the focus to the text field when my custom keyboard is enabled. It has some delay to load and when it loads, text field stays under the keyboard. Here is my code for custom keybaord: #import

Unable to change UIInputView height

自古美人都是妖i 提交于 2019-12-21 03:57:06
问题 I have a simple UIInputViewController subclass with only two overridden methods. I use this input view controller as inputAccessoryViewController on my UIViewController subclass which becomes first responder. I try to specify height of inputView by adding constraint as Apple documentation recommends. Problem is that my constraint doesn't work and I get autolayout exception when my constraint is being added Unable to simultaneously satisfy constraints. Probably at least one of the constraints

Custom Input View in Swift

為{幸葍}努か 提交于 2019-12-20 14:19:32
问题 I've spent hours trying to figure out how to create/then get a custom inputView to work. I have a grid of TextInputs (think scrabble board) that when pressed should load a custom inputView to insert text. I've created a .xib file containing the UI elements for the custom inputView . I was able to create a CustomInputViewController and have the inputView appear but never able to get the actual TextInput to update it's value/text . Apple documentation has seemed light on how to get this to work

Remove Next / Previous buttons (inputAccessoryView) for Custom Keyboard in iOS8 WebView

孤者浪人 提交于 2019-12-17 16:37:08
问题 Please bear with me, I searched a lot over the internet and I couldn't find a solution since it's a new API. I am trying to create a custom keyboard for iOS 8. It works perfectly fine except in WebView! It has previous-next button, which are in inputAccessoryView . I know it's read-only property for webview but since iOS 8 allows the users to have custom keyboard I assume this view should be editable somewhere. Has anybody run into the same issue? Any help would be appreciated. 回答1: You may

Invalid capability and invalid name with custom keyboard

試著忘記壹切 提交于 2019-12-12 02:26:27
问题 I've designed a custom keyboard for the use of my own application only. That's why in fact, I didn't use UIInputViewController but only UIViewController (and set a delegate to the custom text field which is actually a subclassed UIScrollView ). When I call becomeFirstResponder() on my text field, it takes incredibly long (not only the first time but each time I call this function) until the keyboard actually appears (around 2 seconds). Furthermore I get the following error messages:

iOS force App to use custom keyboard

我们两清 提交于 2019-12-11 09:47:05
问题 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 open particular keyboard from the app. Is this possible to force user to open only custom keyboard without going into setting option. I want whenever user opens the app.. only custom keyboard should open, not other 回答1: Just make it numeric by

Custom keyboard appears with ~5seconds delay

早过忘川 提交于 2019-12-10 17:36:34
问题 I'm making custom keyboard with obj-c, Xcode 7 (tried 6 too). The issue is that keyboard is loading too slow. I tried to load completely empty UIInputViewController 's view - no changes. I have no xibs, no heavy resources. Please if someone know any solution of this problem, write an answer. user won't be glad to wait every time keyboard lags. 回答1: It's a known issue that the keyboard (custom or not) may load slowly the first time it's opened after the app launch. It happens only in debug

Swift Must call a designated initializer of the superclass uiinputviewcontroller

老子叫甜甜 提交于 2019-12-08 23:32:17
问题 I get the error in the subject after this morning's upgrade to 8.3. The code below used to work perfectly, however it doesn't compile anymore. Can any of you please help me? protocol CustomAccessoryProtocol { func controlButtonPressed(tag:Int) } class CustomAccessory : UIInputViewController { var accessoryView : UIView! var delegate : CustomAccessoryProtocol! @IBOutlet weak var returnButton: UIButton! @IBOutlet weak var backButton: UIButton! @IBOutlet weak var forwardButton: UIButton! init

How to programmatically disable predictive view in WebView of iOS 8

纵然是瞬间 提交于 2019-12-06 10:47:37
问题 I'm designing a custom keyboard for iOS 8. It works fine on any UITextField but when it's in UIWebView, it shows predictions. Since it's allowed to have custom keyboard in iOS 8 I assume there should be a way to disable this view. Any help would be appreciated. Red area of the following picture: 回答1: I found a workaround solution for this problem. If you add type="email" instead of type="text" in your HTML file like bellow, iOS keyboard won't show the predictive view :) <input type="email"/>

iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?

半腔热情 提交于 2019-12-06 10:25:54
Apple recommends using playInputClick in custom keyboards to simulate a click sound. It's easier to implement AudioServicesPlaySystemSound(1104); so my question then becomes, does playInputClick provide better performance or is it the same thing? Reason Apple recommended this is probably not performance. AudioServicesPlaySystemSound(1104) will probably always play the same sound but playInputClick may play another sound in the future if Apple decides to change the input click sound. So they are the same right now but it might change and if it does your app will be the only one playing the old