PhoneGap 3.3 iOS键盘缩略图
在PhoneGap / Cordova 3.3(和3.2)中,优先级为iOS的KeyboardShrinksView消失了,并被replace为enableViewPortScale 。
任何人都可以向我解释如何实现与使用KeyboardShrinksView,但使用enableViewPortScale和视口 Metatag相同的结果?
在iOS中,如果用户打开键盘,我需要缩小整个视图。
这是我最终做的:
<meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0, height=device-height"/>
感谢@ daniel-miller,上面的答案是从他这里来的:
PhoneGap使用iFrame /对象和JQTouch隐藏PhoneGap Build 3.1中的iOSinput字段
其他帮助: https : //groups.google.com/forum/#!topic/ phonegap/ 87K3lYr6f40
提交删除这些(见https://issues.apache.org/jira/browse/CB-4978 )指出:
键盘首选项已经从核心中删除,并放入其自己的插件在cordova实验室插件分支。
我已经跟踪到https://github.com/apache/cordova-plugins/tree/master/keyboard和这个叉(?): https : //github.com/etiennea/phonegap-keyboard
这应该允许你使用
Keyboard.shrinkView(true)
在你的JS Minic的KeyboardShrinksView的旧function
- IBM MobileFirst HTTPS问题
- UITableViewCell中的CALayer阴影绘制不正确
- iTunes Store操作失败错误:122(51)将.ipa上传到iTunes Connect
- AFNetworking:setRedirectResponseBlock在我的类NSURLResponse总是返回空值
- 为您的应用快速赢取:“添加到Siri”按钮
- CoreData:具有子主上下文的私有上下文 – FetchedResultsController未获取更新
- PFQuery pinAllInBackground:block:永不完成
- 当applicationWillEnterForeground触发时更改UIView
- 在iOS上添加与tiff文件的文件关联