I'm using UIWebView in Xamarin iOS for loading my webpage
When the keyboard appears extra space appearing between textfield and keyboard, I need to remove the unwanted space, Kindly help on this. Thanks in Advance
Maybe there's some logic code on the webpage to move the webview.
We could change its offset by registering the notification of keyboard:
NSNotificationCenter.DefaultCenter.AddObserver(UIKeyboard.WillShowNotification, async (notification) =>
webView.ScrollView.ContentInset = new UIEdgeInsets(0, 0, 0, 0);
webView.ScrollView.ContentOffset = new CGPoint(0, 0);
Moreover, UIWebView now has been deprecated by Apple it's better to move to WKWebView.
Have you tried this approach on the webpage side:https://stackoverflow.com/a/13832007/8354952
It could manually set the offset of the scroll view to (0, 0).
Thanks for the suggestion.
In my situation I don't have the control of the webpage. I'm only loading the url in UIWebView. Is their any way we can control it from UIWebview delegate in Xamarin ios
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies