UIWebView hidden by keyboard - ios

I have iPad app with view and uiwebview in it. It is on the bottom with size smaller than keyboard (e.g. 300x200). In webview is page with form loaded.
When I tap into some textfield, keyboard pops up and hides whole uiwebview. With iOS simulator and slow animation mode I can see, that webview is scrolled, but when it is smaller then keyboard and at the bottom, it is useless. Webview is covered with keyboard.
I have mastered moving hidden content by keyboard according managing keyboard documentation but when i set scrollview offset, webview still do the scrolling and scrolls text input away. There isn't way of setting webview offset.
Also I found in UIWebView class reference important note that embed webview in scrollview won't work correctly.
It seems to me i have come across easy problem but with no solution on the Internet. So am I first who wants to have uiwebview smaller than fullscreen? Is it app Store correct to have small uiwebview? What to do if UIWebView is hidden by keyboard?
Thanks for any notes and suggestions.

You can hide the keyboard when the webView is scrolled, try this:
self.webView.scrollView.keyboardDismissMode =UIScrollViewKeyboardDismissModeOnDrag;

What i would do is Keyboard notifications. You can scroll the view upwards using the methods provided by the UIView class nad this link should help you out greatly.
Keyboard Hiding Screen

Related

Xamarin Forms: Prevent Keyboard resizing the view

we have a WebView inside of a Grid. When I touch inside a control of my webview the Keyboard will show and resize my view. Is it possible to avoid the Keyboard from resizing or moving my view? the webview should stays where it is. the Keyboard should be lay over my webview and should not be scrollable.

How to avoid shrink UIWebView when keyboard hide in ios?

I make application phonegap in iOS, but I got issue that uiwebview shrink when keyboard hide.
So that header and footer move another position. I cannot resolve this problem. Someone can help me?
You can see some screen here:
Focus input text:
Keyboard display:
And when I click on the "Mua" button. Keyboard hide, but webview resize like in image.
Make sure all your base Divs are Absolute rather than fixed

How to make keyboard stay fixed to UIViewController

I'm using JASidePanels to have a slideout-menu in my app. One of the views I have has a always-visible keyboard. My problem is that, when in this keyboard-fixed view, and I show the menu, the keyboard stays at the center of my window instead of following the view i hid to show the menu. I understand why this is, but I would like to tweak it so it follows the view im swiping to the right, instead of staying in the middle.
TL;DR how can I stick a keyboard fixed to a UIView, instead of staying in front of whole app window

How can I stop scrolling when i focus in UIWebview

I have an iOS app use a UIWebView, and there are some textfield views on the UIWebview's scrollview, when I focus in UIWebview after focus in textfield, the view will scroll and the keyboard will jump, it is terrible.
what can i do?

uitextview keyboard appear above uitoolbar

I have a uitoolbar at bottom of my main view. I also have a uitextview at top of my view. when tapped on the textview to start editing I want the keyboard to appear from above the toolbar, not covering the tool bar. I want to know how I can do that also I don't want it to be animated.
I have one more question, when the keyboard appears is it possible to put another view in front of it?
thanks
You can't do the former. The keyboard is in a different window and so doens't interact with the views in your window. Apple doesn't provide any public access to the keyboard window.
As to the latter, putting a view in front of it, you might be able to something like that by creating another window but I've not seen anyone do it and not sure what it would do to the keyboard events, etc.

Resources