Page number in UIWebView

  • Hello everyone, I'm displaying a PDF in an UIWebView object, is there
    a way to access the page number displayed when scrolling?

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

    If you want to be original,
    be your self.
  • 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.
    --
    David Duncan
  • On Thu, May 24, 2012 at 6:49 PM, David Duncan <david.duncan...> 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.
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today