Cue-Me iOS Keyboard Autofocus

时间:2015-06-30 13:40:02

标签: ios

I am making a hybrid app using Cue-Me. I've encountered a problem - autofocus will not bring up the keyboard on iOS. By design, iOS always requires a user touch before the keyboard will display.

In order to change this, I need to change the value of an iOS bool called "keyboarddisplayrequiresuseraction" from TRUE to FALSE. This is apparently a trivial task in other frameworks like Cordova, but there is not much documentation for Cue-Me online, so I am unsure how to approach the issue.

1 个答案:

答案 0 :(得分:0)

经过一番搜索,一位朋友给我看了一个名为“方法调酒”的解决方案。这个解决方案有效,自动对焦现在可以在iOS中正确显示键盘!

此处有更多信息 - http://nshipster.com/method-swizzling/