On Thu, May 24, 2012 at 6:49 PM, David Duncan <[email protected]> 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 protected])

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

This email sent to [email protected]

Reply via email to