我已经创建了 Ionic-Cordova 应用程序(iOS 应用程序)。
首先,我移除了键盘配件栏。
配件栏进展顺利。 (下图)
...但是当我向下滚动到底部时它显示一个空白区域(键盘顶部的空白区域)
谁能想出如何解决这个问题?
我不确定是 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/