• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone: UIWebView scroll position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >iPhone: UIWebView scroll position (From: "Eric E. Dolecki" <email@hidden>)
 >Re: iPhone: UIWebView scroll position (From: Peter Blazejewicz <email@hidden>)

  • Prev by Date: Re: iPhone: UIWebView scroll position
  • Next by Date: NSXML and &gt;
  • Previous by thread: Re: iPhone: UIWebView scroll position
  • Next by thread: NSXML and &gt;
  • Index(es):
    • Date
    • Thread