My app is powered by a full screen UIWebView
. It works well except when the keyboard is brought up the view is shifted over about 10 pixels leaving a white gap (see screenshot below).
Does anyone know what causes this and if there are any solutions or work arounds?
UPDATE:
To be more specific, the UIWebView
is not shifting over, the HTML content is shifting over.
You can try disabling zoom for webview:
webview.scrollView.delegate = self;
-(UIView*)viewForZoomingInScrollView:(UIScrollView*)scrollView {
return nil;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With