Re: iPhone: UIWebView scroll position
Re: iPhone: UIWebView scroll position
- Subject: Re: iPhone: UIWebView scroll position
- From: "Eric E. Dolecki" <email@hidden>
- Date: Tue, 9 Feb 2010 14:34:56 -0500
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 <
email@hidden> 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 <email@hidden>
> 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 (email@hidden)
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:
This email sent to email@hidden