Peter,

I am not using a status bar, so I went with

[webView stringByEvaluatingJavaScriptFromString:@"window.scrollTo(0,0);"]

of course I don't get animation with that, so I am thinking of using jQuery
to do that.

Eric



On Tue, Feb 9, 2010 at 2:22 PM, Peter Blazejewicz <
peter.blazejew...@gmail.com> wrote:

> Hello Eric,
> Can you clarify? By default when user tap status bar area embedded web
> view should scroll as any other scroll-enabled views. So that's
> built-in and should work with your UIWebView.
> Maybe you want to execute window.scrollTo(...) simply by evaluating
> JavaScript on your UIWebView instance
> (stringByEvaluatingJavaScriptFromString)?
> Like: [NSString stringWithFormat: @"window.scrollTo(0, %d);" value]?
>
> kind regards,
> Peter Blazejewicz
>
> On Tue, Feb 9, 2010 at 8:10 PM, Eric E. Dolecki <edole...@gmail.com>
> wrote:
> > I'd like to be able to have a user tap an area which will scroll the
> > contents of a UIWebView to the top - but I don't see that. Do I have to
> > stick a UIWebView into a UIScrollView or is there an easier way?
> >
> > Eric
>



-- 
http://ericd.net
Interactive design and development
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to