Keyboard appears in response to a html input element getting focus? If so, 
adding a javascript scrollTo may work. When the element gets focus, calculate 
its y position in the webview and call scrollTo with relevant coordinates. 
Maybe all in javascript, which makes it fast and lightwight. Do you own the 
html? 

Verstuurd vanaf mijn iPhone

> Op 29 mei 2014 om 00:27 heeft Nick Zitzmann <[email protected]> het 
> volgende geschreven:
> 
> 
>> On May 28, 2014, at 2:11 AM, Diederik Meijer <[email protected]> wrote:
>> 
>> You could consider animating the UiWebview up when the keyboard appears and 
>> down again when it disappears.
> 
> That works, but then I have the opposite problem - touching in an area that 
> isn't obscured by the keyboard causes it to be moved off the top of the 
> screen. So I tried using UIGestureRecognizer to figure out where the user 
> touched the screen, but UIGestureRecognizers added to UIWebViews don't seem 
> to be called when the view is touched.
> 
> So how do I figure out where the user touched the view so the app can know 
> when not to move the view? The AppKit has the -[NSApplication currentEvent] 
> property, but I can't find any UIKit equivalent.
> 
> Nick Zitzmann
> <http://www.chronosnet.com/>
> 
> 
> 
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to