ios - 在 Cordova/Ionic/iOS 中滚动时的空白区域

标签 ios css objective-c cordova ionic-framework

我已经创建了 Ionic-Cordova 应用程序(iOS 应用程序)。

首先,我移除了键盘配件栏。

配件栏进展顺利。 (下图)

enter image description here

...但是当我向下滚动到底部时它显示一个空白区域(键盘顶部的空白区域)

enter image description here

谁能想出如何解决这个问题?

我不确定是 Cordova/iOS 还是 Ionic/css 问题,我尝试解决所有这些问题但没有任何效果。

最佳答案

试试这个:

-(void)textFieldDidBeginEditing:(UITextField *)textField { 
//Give your specifications here while editing
scrollview.frame = CGRectMake(0,0,320,285);
 //If you are using tableview,give the constraints for tableview
}
-(void)textFieldDidEndEditing:(UITextField *)textField {
//Give your specifications here after editing completed
scrollview.frame = CGRectMake(0,0,320,586);
}

关于ios - 在 Cordova/Ionic/iOS 中滚动时的空白区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23797632/

相关文章:

ios - 如何声明继承的内置协议(protocol),以便可以从另一个框架或应用程序导入它?

ios - 在iTunes Connect中添加新的应用内购买时,“保存”按钮消失

ios - 截断 UILabel 中的部分文本

html - 在 CSS 中的横幅中实现类似箭头的形状

objective-c - 在 XCode + Objective-C 中链接用 C 编写的库

iOS 设备音频输出枚举

iOS数据过滤错误

css - 使用 CSS 实现字体模糊时遇到问题

javascript - 在 javascript 中显示按钮并打印变量

ios - Apple 的 doCipher 示例代码中的不良做法 :key:context:padding method