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
Related
We have an app that is a fixed width and height and does not allow the user to scroll. As part of this app we have a navbar that is fixed to the screen under the status area. This all works great.
The problem is that when a keyboard is shown, it shifts our app window up to make room for the keyboard. At this point its possible to scroll our app and the titlebar which should be fixed to the top is no longer on screen.
Ideally the keyboard would still show, but our app window would resize so its not as tall, but items fixed to the top are still fixed to the top. also, you should not be able to scroll the window at this point.
So as Sani mentioned in a comment the Iconic keyboard plugin does in fact do what I'm looking for:
https://github.com/driftyco/ionic-plugins-keyboard
using:
cordova.plugins.Keyboard.disableScroll(true);
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
Is it possible to display only the part of the keyboard in iOS 7? For example, I would like to display the keyboard, but I do not want the space bar visible. How would I add the keyboard to display the portion of the keyboard above the space bar?
Research has confirmed that it is not possible to adjust the frame of the keyboard.
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
I have tried one sample from the this link
Actually what i tried is placed an uitextfield and added that toolbar as inputaccessoryview.
When i tap on the uitexfield, it shows the uikeyboard with that toolbar added on top that is ok.
But the toolbar which was showing under the pickervieew is now get hidden after i did the above thing...
Please let me know why is that happening
If you mean your app had a toolbar at the bottom, and the picker view/keyboard/other input view appears on top of this, then this is the expected behaviour.
For example, look at mobile safari, when you enter text in a field on the page (like an SO answer, for example!), the keyboard covers the lower toolbar. Otherwise you'd hit it when typing.
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.