【问题标题】:KeyboardShrinksView & Keyboard.shrinkView(true) have no effect on iOS with Cordova 3.4.1 + Keyboard pluginKeyboardShrinksView & Keyboard.shrinkView(true) 对带有 Cordova 3.4.1 + 键盘插件的 iOS 没有影响
【发布时间】:2014-06-03 18:03:47
【问题描述】:

我正在使用来自 cordova-plugins 的 Cordova 3.4.1 和 the Keyboard plugin。根据键盘插件的文档,我应该可以设置<preference name="KeyboardShrinksView" value="true" /> 首选项或在我的Javascript 中调用Keyboard.shrinkView(true) 来制作键盘,呃,缩小视图。

不幸的是,据我所知,这些都没有任何效果,我不知道如何进行。我将不胜感激任何人都可以提供的帮助,以使其按照宣传的方式工作。

我不确定哪些配置或代码对我提供调试目的有用。这是 iOS 版本的 config.xml

https://gist.github.com/mccutchen/3fd6c3f1d4096a348a00

这个问题问的差不多,但还没有任何有用的答案:

PhoneGap 3.3 iOS KeyboardShrinksView

谢谢!

【问题讨论】:

  • 我在 iOS 8.1 上使用最新的 cordova + 这个插件时遇到了完全相同的问题。自 6 月以来,您找到解决方案了吗?

标签: ios mobile cordova keyboard


【解决方案1】:

请参阅我对这篇 SO 文章的回复,以获取有关此(仍未解决的 AFAIK)主题的一些可能的帮助/见解:Phonegap KeyboardShrinksView and position fixed on iOS not applying correctly

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-12
    • 2014-07-11
    • 1970-01-01
    相关资源
    最近更新 更多