隐藏iPhone键盘上方的工具栏,PhoneGap [英] Hide toolbar above iPhone keyboard, PhoneGap

查看:208
本文介绍了隐藏iPhone键盘上方的工具栏,PhoneGap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PhoneGap开发iPhone应用程序。在应用程序中,有一个页面只包含一个textarea供用户输入。由于此页面上没有其他输入字段,我想隐藏键盘上方的工具栏以为用户提供更多可用空间。有没有办法这样做?使用javascript

I'm developing a iPhone app using PhoneGap. In the app there is a page contains only one textarea for user's input. As there is no other input field on this page, I want to hide the toolbar above the keyboard to give user more free space. Is there any way to do so? using javascript

推荐答案

我不知道这是否可以通过phonegap API直接实现,但您可以通过编写PhoneGap插件来更改本机代码的此行为这样做。

I don't know whether this is directly possible with phonegap API but you can change this behavior with native code by writing a PhoneGap plugin to do that.

请参阅以下链接了解更多细节(它们不准确,但会为您提供所需的详细信息):

Refer below links for more detail (they are not exact but will give you the required detail):

以编程方式对齐iPhone顶部的工具栏键盘

http://gabriel-tips.blogspot.in/2011/05/input-accessory-view-how-to-add-extra.html

这篇关于隐藏iPhone键盘上方的工具栏,PhoneGap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆