Re: Page number in UIWebView
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