• 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: Page number in UIWebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page number in UIWebView


  • Subject: Re: Page number in UIWebView
  • From: Takeichi Kanzaki Cabrera <email@hidden>
  • Date: Mon, 28 May 2012 16:51:46 +0200

On Thu, May 24, 2012 at 6:49 PM, David Duncan <email@hidden> wrote:
> On May 24, 2012, at 4:05 AM, Takeichi Kanzaki Cabrera wrote:
>
>> Hello everyone, I'm displaying a PDF in an UIWebView object, is there a way to access the page number displayed when scrolling?
>
> Nope.

OK, thanks, I was almost sure that this was the answer to my question ;-).

In order to implement this functionality I create a subclass of
UIWebView, the problem that I have now is that it works perfect on the
simulator but not in a device, when I call
stringByEvaluatingJavaScriptFromString: on the device with "any value"
I get no answer, for example:

[self stringByEvaluatingJavaScriptFromString:[NSString
stringWithFormat:@"window.scrollTo(0, %d)",
(pageNumber-1)*pageHeight]];

doesn't do anything, any clue?

> --
> David Duncan
>



--
Regards,
Takeichi Kanzaki Cabrera
Linux Registered User #308138

If you want to be original,
be yourself.
_______________________________________________

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: 
 >Page number in UIWebView (From: Takeichi Kanzaki Cabrera <email@hidden>)
 >Re: Page number in UIWebView (From: David Duncan <email@hidden>)

  • Prev by Date: CoreData, automatic migration and sandbox problems.
  • Next by Date: Re: CoreData, automatic migration and sandbox problems.
  • Previous by thread: Re: Page number in UIWebView
  • Next by thread: NSWindowController subclasses, and retain cycles
  • Index(es):
    • Date
    • Thread