IPhone Book Wrapper app, pagination HTML

I am developing an application that will just be a wrapper for a specific book, a book in HTML, so I want to do something like a stanza, I want to determine no. pages based on the entire HTML book and dynamic submission.

Are there any built-in methods that can help me? or does anyone know any idea how this can be done?

+4
source share
2 answers

If you need to do this only once: insert some javascript in the HTML to indicate the height of the document after loading it, for example:

alert(document.height); 

and divide it by the height of your web view to get the number of pages.

+1
source

You can use UIWebView to load data and leave the navigation / link code for pagination in HTML.

0
source

All Articles