I built a cordova app for ios and Android with Framework7 v 2.3.1 and the material design.
It works perfectly, but a few days ago I compiled the cordova app for iOS with xcode 10. On iOS 12 device, if the app is compiled with xcode 10, when I select a input field the keyboard appears and the view scrolls up, but when the keyboard closes, the view doesn’t scroll down, the blank space of the keyboard remains, so it is impossibile for example to go back because the header with the back button is overscrolled. The problem there isn’t if I compile the app with xcode 9.4 and I install it on a device with iOS 12.
I uploaded a screenshot to explain better the problem
Anybody have a solution?
Thanks
Cristian
I have figured it out. Include this in your view controller class.
Swift code xcode(10):
if #available(iOS 11.0, *) {
self.webView?.scrollView.contentInsetAdjustmentBehavior = .automatic
}
The problem is with iphone X safearea, it was fixed on other devices but not iphone x. It’s not working in full mode leaving white space on top and bottom. Please advice
No, I don’t use any cordova-plugin-keyboard. The problems happens on the iOS 12 device on if the app is compiled with Xcode 10. If I use Xcode 9 to compile, the app works perfectly even on iOS 12 device. I used for my test a iPhone 6 with iOS 12.
Thanks
i update my iPad today to iOS 12
Face the same problem Exactly. that view doesn’t scroll down back when i close keyboard, And i dont think this problem was exist on iOS 11.
Note: I am not using cordova, loading my application on WKWebView.
Using Framework7 3.2.0
I installed cordova-plugin-keyboard and inside deviceready function I set Keyboard.automaticScrollToTopOnHiding=true;
I built the app with xcode 10 and now it works on the devices with iOS 12 .
Thanks